Interface Auth.Signer

Enclosing class:
Auth
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Auth.Signer
Signs a Soroban authorization preimage, returning the signature SCVal accepted by the account contract at the credential node being signed — the default Stellar Account shape for a classic G... account (see Auth.defaultAccountSignatureScVal(String, byte[])), or whatever the custom account contract's __check_auth expects (BLS, WebAuthn / secp256r1, threshold, policy contracts, ...).

Use Auth.authorizationPayloadHash(HashIDPreimage) to obtain the 32-byte payload the host hashes from the preimage and hands to __check_auth.

  • Method Summary

    Modifier and Type
    Method
    Description
    sign(HashIDPreimage preimage)