Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @taquito/utils

Taquito Utils package

Our current implementation of the Michelson parser is a prototype. The current implementation is naïve. We are likely going to switch to using the Nomadic Michelson encoder in the future, as per Issue https://gitlab.com/tezos/tezos/issues/581

Index

Variables

Const blake

blake: any = require('blakejs')

Const bs58check

bs58check: any = require('bs58check')

Const bs58check

bs58check: any = require('bs58check')

Const contractPrefix

contractPrefix: Prefix[] = [Prefix.KT1]

Const implicitPrefix

implicitPrefix: Prefix[] = [Prefix.TZ1, Prefix.TZ2, Prefix.TZ3]

Const pkPrefix

pkPrefix: Prefix[] = [Prefix.EDPK, Prefix.SPPK, Prefix.P2PK]

Const signaturePrefix

signaturePrefix: Prefix[] = [Prefix.EDSIG, Prefix.P2SIG, Prefix.SPSIG, Prefix.SIG]

Functions

Const b58cdecode

  • b58cdecode(enc: string, prefixArg: Uint8Array): Uint8Array

b58cencode

  • b58cencode(value: string | Uint8Array, prefix: Uint8Array): any
  • description

    Base58 encode a string or a Uint8Array and append a prefix to it

    Parameters

    • value: string | Uint8Array

      Value to base58 encode

    • prefix: Uint8Array

      prefix to append to the encoded string

    Returns any

b58decode

  • b58decode(payload: string): string

Const buf2hex

  • buf2hex(buffer: Buffer): string

encodeExpr

  • encodeExpr(value: string): any

encodeKey

  • encodeKey(value: string): any

encodeKeyHash

  • encodeKeyHash(value: string): any

encodePubKey

  • encodePubKey(value: string): any

Const hex2buf

  • hex2buf(hex: string): Uint8Array

Const hexNonce

  • hexNonce(length: number): string

isValidPrefix

  • isValidPrefix(value: any): boolean

Const mergebuf

  • mergebuf(b1: Uint8Array, b2: Uint8Array): Uint8Array

Const mic2arr

  • mic2arr(s: any): any

Const ml2mic

  • ml2mic(mi: string): any

Const sexp2mic

  • sexp2mic(mi: string): any

validateAddress

validateChain

validateContractAddress

validateKeyHash

validatePrefixedValue

validatePublicKey

validateSignature

Object literals

Const prefix

prefix: object

__computed

__computed: Uint8Array = new Uint8Array([2, 90, 121])

Const prefixLength

prefixLength: object

__computed

__computed: number = 32

Generated using TypeDoc