Package net.finmath.pontes.erc7573
Class SignedPontesReferenceCodec
java.lang.Object
net.finmath.pontes.erc7573.SignedPontesReferenceCodec
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 Summary
Modifier and TypeMethodDescriptionopen(byte[] encodedReference) Parse and verify a public reference and, when configured, its expected signer.static SignedPontesReferenceCodecparticipant(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.byte[]seal(PontesReference reference) Create a deterministic signed reference when signing credentials are available.static SignedPontesReferenceCodecConstruct a codec pinned to an explicit signer address.static SignedPontesReferenceCodecConstruct a verifier pinned to an explicit signer address.
-
Method Details
-
signing
public static SignedPontesReferenceCodec signing(String expectedSignerAddress, String privateKeyHex) Construct a codec pinned to an explicit signer address. -
participant
Construct a participant codec which signs locally and accepts references from any counterparty after their exact on-chain request context has been authenticated. -
verifying
Construct a verifier pinned to an explicit signer address. -
seal
Create a deterministic signed reference when signing credentials are available. -
open
Parse and verify a public reference and, when configured, its expected signer.
-