Class SignedPontesReferenceCodec

java.lang.Object
net.finmath.pontes.erc7573.SignedPontesReferenceCodec

public final class SignedPontesReferenceCodec extends Object
Canonical UTF-8, publicly readable and recoverably signed Pontes reference codec.

The envelope is pontes-ref:v1:<65-byte-signature-hex>:<canonical-json>. The JSON exposes only transaction metadata and key hashes, never S or F. Its signature is produced by the participant serving the generation request and is verified before use.

  • Method Details

    • signing

      public static SignedPontesReferenceCodec signing(String expectedSignerAddress, String privateKeyHex)
      Construct a codec pinned to an explicit signer address.
    • participant

      public static SignedPontesReferenceCodec participant(String privateKeyHex)
      Construct a participant codec which signs locally and accepts references from any counterparty after their exact on-chain request context has been authenticated.
    • verifying

      public static SignedPontesReferenceCodec verifying(String expectedSignerAddress)
      Construct a verifier pinned to an explicit signer address.
    • seal

      public byte[] seal(PontesReference reference)
      Create a deterministic signed reference when signing credentials are available.
    • open

      public PontesReference open(byte[] encodedReference)
      Parse and verify a public reference and, when configured, its expected signer.