Signer Builders
createWebAuthnSigner()
Create a passkey (secp256r1) signer.
createDelegatedSigner()
Create a delegated Stellar G-address signer.
createEd25519Signer()
Create an Ed25519 key signer.
createExternalSigner()
Create a signer for a custom on-chain verifier contract.
Context Rule Type Builders
createDefaultContext()
A rule that matches any operation. Use as a catch-all fallback rule.
createCallContractContext()
A rule that only matches invocations of a specific contract.
createCreateContractContext()
A rule that only matches contract deployments.
Policy Parameter Builders
createThresholdParams()
M-of-N multisig: require m signatures from any of the rule’s signers.
createWeightedThresholdParams()
Weighted voting: each signer has a weight, and the transaction must accumulate enough weight to reach the threshold.
createSpendingLimitParams()
Cap token spending over a rolling ledger window.
Ledger Constants
Signer Helper Functions
| Function | Description |
|---|---|
getCredentialIdFromSigner(signer) | Extract the credential ID from a WebAuthn signer |
signersEqual(a, b) | Deep-compare two signers |
truncateAddress(address) | Shorten a G/C-address for display (e.g. GABC...WXYZ) |
formatSignerForDisplay(signer) | Format a signer as a human-readable string |