Index

C E F G H I K M R S T U V X 
All Classes and Interfaces|All Packages

C

canBeRedeemed() - Method in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
Checks if this status allows the voucher to be redeemed.
create(String, String, long, Long, String) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Creates a new voucher with auto-generated UUID.
create(String, String, String, long, Long, String) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Creates a voucher with specified voucher ID.
createSigned(VoucherSecret, String, String) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherSignatureService
Creates a signed voucher by signing the secret and wrapping it.
Cryptographic Details - Search tag in class xyz.tcheeric.cashu.voucher.domain.VoucherSignatureService
Section

E

equals(Object) - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
 
equals(Object) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
 
EXPIRED - Enum constant in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
Voucher's expiry time has passed without being redeemed.

F

failure(String) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator.ValidationResult
Creates a failed validation result with a single error.
failure(List<String>) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator.ValidationResult
Creates a failed validation result with multiple errors.
fromCbor(byte[]) - Static method in class xyz.tcheeric.cashu.voucher.domain.util.VoucherSerializationUtils
Deserializes CBOR bytes to a map.

G

getData() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Returns canonical bytes for Secret interface.
getDescription() - Method in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
Returns a human-readable description of this status.
getErrorMessage() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator.ValidationResult
Returns a formatted string of all errors.
getErrors() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator.ValidationResult
Returns an unmodifiable view of the errors list.
getIssuerSignature() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Returns a defensive copy of the signature bytes.

H

hashCode() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
 
hashCode() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
 

I

Immutability - Search tag in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Section
Immutability - Search tag in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Section
isExpired() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Checks if this voucher has expired.
isExpired() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Checks if this voucher has expired.
ISSUED - Enum constant in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
Voucher has been issued and published to the Nostr ledger.
isTerminal() - Method in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
Checks if this status represents a terminal state.
isValid() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Checks if this voucher is fully valid (signature valid AND not expired).
isValid() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Checks if this voucher is valid (not expired).
isValid(SignedVoucher) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator
Quick check if a voucher is valid (no detailed errors).

K

Key Format - Search tag in class xyz.tcheeric.cashu.voucher.domain.VoucherSignatureService
Section

M

Model B Constraint - Search tag in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Section
Model B Constraint - Search tag in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Section
Model B Constraints - Search tag in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
Section

R

REDEEMED - Enum constant in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
Voucher has been successfully redeemed by the merchant.
REVOKED - Enum constant in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
Voucher has been revoked by the issuer before redemption.

S

Serialization - Search tag in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Section
serialize(VoucherSecret, JsonGenerator, SerializerProvider) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecretSerializer
 
setData(byte[]) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
VoucherSecret is immutable - data cannot be modified after creation.
sign(VoucherSecret, String) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherSignatureService
Signs a voucher secret with an issuer's private key.
SignedVoucher - Class in xyz.tcheeric.cashu.voucher.domain
A voucher secret with an issuer's cryptographic signature.
SignedVoucher(VoucherSecret, byte[], String) - Constructor for class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Creates a signed voucher.
Status Descriptions - Search tag in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
Section
success() - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator.ValidationResult
Creates a successful validation result.

T

Thread Safety - Search tag in class xyz.tcheeric.cashu.voucher.domain.VoucherSignatureService
Section
Thread Safety - Search tag in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator
Section
toBytes() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Alias for VoucherSecret.toCanonicalBytes() for Secret interface.
toCanonicalBytes() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Canonical serialization for deterministic signing.
toCbor(Map<String, Object>) - Static method in class xyz.tcheeric.cashu.voucher.domain.util.VoucherSerializationUtils
Serializes a map to CBOR bytes in canonical form.
toHexString() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Returns hex-encoded canonical representation.
toString() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Returns a string representation for debugging.
toString() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Returns hex-encoded string representation.
toString() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator.ValidationResult
 
toStringWithMetadata() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Returns a detailed string representation including full secret metadata.
toStringWithMetadata() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Returns a detailed string representation including metadata.

U

Usage Examples - Search tag in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator
Section

V

validate(SignedVoucher) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator
Validates a signed voucher.
validateExpiryOnly(SignedVoucher) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator
Validates just the expiry of a voucher.
validateSignatureOnly(SignedVoucher) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator
Validates just the cryptographic signature of a voucher.
validateWithIssuer(SignedVoucher, String) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator
Validates a signed voucher and checks that it was issued by the expected issuer.
ValidationResult() - Constructor for class xyz.tcheeric.cashu.voucher.domain.VoucherValidator.ValidationResult
 
Validation Rules - Search tag in class xyz.tcheeric.cashu.voucher.domain.VoucherValidator
Section
valueOf(String) - Static method in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
Returns the enum constant of this class with the specified name.
values() - Static method in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
Returns an array containing the constants of this enum class, in the order they are declared.
Verification - Search tag in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Section
verify() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Verifies the cryptographic signature of this voucher.
verify(VoucherSecret, byte[], String) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherSignatureService
Verifies a voucher signature using the issuer's public key.
VoucherSecret - Class in xyz.tcheeric.cashu.voucher.domain
Gift card voucher secret (Model B - spendable only at issuing merchant).
VoucherSecretSerializer - Class in xyz.tcheeric.cashu.voucher.domain
Custom Jackson serializer for VoucherSecret.
VoucherSecretSerializer() - Constructor for class xyz.tcheeric.cashu.voucher.domain.VoucherSecretSerializer
 
VoucherSerializationUtils - Class in xyz.tcheeric.cashu.voucher.domain.util
Utility class for canonical CBOR serialization of voucher data.
VoucherSignatureService - Class in xyz.tcheeric.cashu.voucher.domain
Service for ED25519 signature generation and verification of voucher secrets.
VoucherStatus - Enum Class in xyz.tcheeric.cashu.voucher.domain
Represents the lifecycle status of a voucher.
VoucherValidator - Class in xyz.tcheeric.cashu.voucher.domain
Validates vouchers for correctness and authenticity.
VoucherValidator.ValidationResult - Class in xyz.tcheeric.cashu.voucher.domain
Result of voucher validation containing status and error messages.

X

xyz.tcheeric.cashu.voucher.domain - package xyz.tcheeric.cashu.voucher.domain
 
xyz.tcheeric.cashu.voucher.domain.util - package xyz.tcheeric.cashu.voucher.domain.util
 
C E F G H I K M R S T U V X 
All Classes and Interfaces|All Packages