Class

SignatureRules

SignatureRules()

Stores threshold and weights for a multisignature requirement.

Constructor

# new SignatureRules()

View Source pkg/wasm.js, line 1718

Methods

# static new(threshold, weights) → {SignatureRules}

Creates a new set of co-signature rules.

Parameters:
Name Type Description
threshold BigInt

Minimum sum of signature weights that is required for an asset transfer.

weights JsValue

Array of public key weights of the form `[["kAb...", BigInt(5)]]', where the first element of each tuple is a base64 encoded public key and the second is the key's associated weight.

View Source pkg/wasm.js, line 1745