Beta Optional signature: stringReadonly dataOffering's data such as payment methods, required claims, and currencies
Readonly kindThe resource kind (offering)
Readonly metadataMetadata such as sender, date created, date updated, and ID
Resource creation time. Expressed as ISO8601
The sender's DID
the resource's id
the protocol version
the resource's cryptographic signature
Resource last updated time. Expressed as ISO8601
Computes a digest of the payload by:
The SHA-256 hash of the canonicalized payload, represented as a byte array.
returns the resource as a json object. Automatically used by JSON.stringify method.
Validates the resource structure and verifies the cryptographic signature
Resource signer's DID
if the resource signature is invalid
if the signer's DID does not match Resource.metadata.from
if the resource structure is invalid
see Crypto.verify
Static createCreates an Offering with the given options
options to create an offering
Static generateGenerates a unique id with the resource kind's prefix
Static parseParses a json resource into an Offering
the Offering to parse
The parsed Offering
if the offering could not be parsed or is not a valid Offering
An Offering is used by the PFI to describe a currency pair they have to offer including the requirements, conditions, and constraints in order to fulfill that offer.