• Signatures are batched in groups of 7 due to instruction data limits. These signatures are passed through to the Secp256k1 program to verify that the guardian public keys can be recovered. This instruction is paired with verify_signatures to validate the pubkey recovery.

    There are at most three pairs of instructions created.

    https://github.com/certusone/wormhole/blob/main/solana/bridge/program/src/api/verify_signature.rs

    Parameters

    • connection: Connection

      Solana web3 connection

    • wormholeProgramId: PublicKeyInitData

      wormhole program address

    • payer: PublicKeyInitData

      transaction signer address

    • vaa: VAA<any>

      either signed VAA bytes or parsed VAA

    • signatureSet: PublicKeyInitData

      address to account of verified signatures

    • Optional commitment: Commitment

    Returns Promise<TransactionInstruction[]>

Generated using TypeDoc