How to use the @colony/purser-core/defaults.REQUIRED_PROPS.SIGN_MESSAGE function in @colony/purser-core

To help you get started, we’ve selected a few @colony/purser-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JoinColony / purser / modules / node_modules / @colony / purser-ledger / class.js View on Github external
value: async (messageObject: Object = {}) => {
            /*
             * Validate the trasaction's object input
             */
            userInputValidator({
              firstArgument: messageObject,
              requiredOr: REQUIRED_PROPS.SIGN_MESSAGE,
            });
            return signMessage({
              derivationPath: await this.derivationPath,
              message: messageObject.message,
              messageData: messageObject.messageData,
            });
          },
        },
github JoinColony / purser / modules / node_modules / @colony / purser-trezor / class.js View on Github external
value: async (messageObject: Object = {}) => {
            /*
             * Validate the trasaction's object input
             */
            userInputValidator({
              firstArgument: messageObject,
              requiredOr: REQUIRED_PROPS.SIGN_MESSAGE,
            });
            return signMessage({
              derivationPath: await this.derivationPath,
              message: messageObject.message,
              messageData: messageObject.messageData,
            });
          },
        },
github JoinColony / purser / modules / node_modules / @colony / purser-metamask / class.js View on Github external
value: async (messageObject: Object = {}) => {
            /*
             * Validate the trasaction's object input
             */
            userInputValidator({
              firstArgument: messageObject,
              requiredOr: REQUIRED_PROPS.SIGN_MESSAGE,
            });
            return signMessage({
              currentAddress: this.address,
              message: messageObject.message,
              messageData: messageObject.messageData,
            });
          },
        },
github JoinColony / purser / modules / node_modules / @colony / purser-software / class.js View on Github external
value: async (messageObject: Object = {}) => {
            /*
             * Validate the trasaction's object input
             */
            userInputValidator({
              firstArgument: messageObject,
              requiredOr: REQUIRED_PROPS.SIGN_MESSAGE,
            });
            return signMessage({
              message: messageObject.message,
              messageData: messageObject.messageData,
              /*
               * @NOTE We need to bind the whole ethers instance
               *
               * Since the `signMessage` will look for different methods inside the
               * class's prototype, and if it fails to find them, it will
               * crash
               */
              callback: (ethersSignMessage: any).bind(ethersInstance),
            });
          },
        },