Taquito TypeDocs
    Preparing search index...

    Interface Signer

    Signer interface which is used across taquito in order to sign and inject operation

    interface Signer {
        provePossession?(): Promise<RawSignResult>;
        publicKey(): Promise<string>;
        publicKeyHash(): Promise<string>;
        secretKey(): Promise<string | undefined>;
        sign(
            op: string,
            magicByte?: Uint8Array<ArrayBufferLike>,
        ): Promise<SignResult>;
    }
    Index

    Methods

    • Parameters

      • op: string

        Message to sign

      • OptionalmagicByte: Uint8Array<ArrayBufferLike>

        Magic bytes 11 for block, 12 for preattestation, 13 for attestation, 3 for generic, 5 for the PACK format of michelson Sign the message and return an object with bytes, sig, prefixSig and sbytes

      Returns Promise<SignResult>