Documentation
    Preparing search index...

    Class MultiSigPublicKey

    A MultiSig public key

    Hierarchy (View Summary)

    Index
    • Create a new MultiSigPublicKey object

      Parameters

      • value: string | Uint8Array<ArrayBufferLike> | MultiSigPublicKeyStruct

        MultiSig public key as buffer or base-64 encoded string

      • options: { client?: ClientWithCoreApi } = {}

      Returns MultiSigPublicKey

    • Combines multiple partial signatures into a single multisig, ensuring that each public key signs only once and that all the public keys involved are known and valid, and then serializes multisig into the standard format

      Parameters

      • signatures: string[]

      Returns string

    • Return the Sui address associated with this MultiSig public key

      Returns number

    • Returns { publicKey: PublicKey; weight: number }[]

    • Returns number

    • Return the base-64 representation of the public key

      Returns string

    • Return the byte array representation of the MultiSig public key

      Returns Uint8Array<ArrayBuffer>

    • Returns never

    • Return the Sui address associated with this MultiSig public key

      Returns string

    • Returns the bytes representation of the public key prefixed with the signature scheme flag

      Returns Uint8Array<ArrayBuffer>

    • Return the Sui representation of the public key encoded in base-64. A Sui public key is formed by the concatenation of the scheme flag with the raw bytes of the public key

      Returns string

    • Verifies that the signature is valid for the provided message

      Parameters

      • message: Uint8Array
      • multisigSignature: string

      Returns Promise<boolean>

    • Verifies that the public key is associated with the provided address

      This only compares the address derived from this key. It doesn't check address aliases, so it isn't an account check: use @mysten/sui/verify with { client, address } for that.

      Parameters

      • address: string

      Returns boolean

    • Verifies that the signature is valid for the provided PersonalMessage

      Parameters

      • message: Uint8Array
      • multisigSignature: string

      Returns Promise<boolean>

    • Verifies that the signature is valid for the provided Transaction

      Parameters

      • transaction: Uint8Array
      • multisigSignature: string

      Returns Promise<boolean>

    • Parameters

      • bytes: Uint8Array
      • signature: string | Uint8Array<ArrayBufferLike>
      • intent: IntentScope

      Returns Promise<boolean>

    • A static method to create a new MultiSig publickey instance from a set of public keys and their associated weights pairs and threshold.

      Parameters

      • __namedParameters: {
            client?: ClientWithCoreApi;
            publicKeys: { publicKey: PublicKey; weight: number }[];
            threshold: number;
        }
        • Optionalclient?: ClientWithCoreApi

          Client used to verify zkLogin member signatures

        • publicKeys: { publicKey: PublicKey; weight: number }[]
        • threshold: number

      Returns MultiSigPublicKey