Taquito TypeDocs
    Preparing search index...

    Interface PublicKey

    interface PublicKey {
        bytes(compress?: boolean): Uint8Array;
        compare(other: PublicKey): number;
        hash(): string;
        toProtocol(): Uint8Array;
    }
    Index

    Methods

    • Get the bytes of the public key without prefix

      Parameters

      • Optionalcompress: boolean

        Whether to get the compressed format of the public key

      Returns Uint8Array

      the bytes of the public key

      true
      
    • Compare two public keys of the same elliptic curve

      Parameters

      • other: PublicKey

        the other PublicKey class to compare to

      Returns number

      -1 if this public key is less than the other, 0 if they are equal, 1 if this public key is greater than the other

      InvalidPublicKeyError