How to use the @taquito/utils.encodePubKey function in @taquito/utils

To help you get started, we’ve selected a few @taquito/utils 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 ecadlabs / taquito / packages / taquito-michelson-encoder / src / tokens / comparable / address.ts View on Github external
public ToKey({ bytes, string }: any) {
    if (string) {
      return string;
    }

    return encodePubKey(bytes);
  }
}
github ecadlabs / taquito / packages / taquito-michelson-encoder / src / tokens / comparable / address.ts View on Github external
public Execute(val: { bytes: string; string: string }): string {
    if (val.string) {
      return val.string;
    }

    return encodePubKey(val.bytes);
  }
github ecadlabs / taquito / packages / taquito-michelson-encoder / src / tokens / contract.ts View on Github external
public Execute(val: { bytes: string; string: string }) {
    if (val.string) {
      return val.string;
    }

    return encodePubKey(val.bytes);
  }