Index
All Classes and Interfaces|All Packages
B
- backingStrategy(BackingStrategy) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret.Builder
- BackingStrategy - Enum Class in xyz.tcheeric.cashu.voucher.domain
-
Backing strategy for voucher token amounts.
- build() - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret.Builder
- builder() - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret
-
Returns a builder for creating VoucherSecret instances with fluent API.
- Builder() - Constructor for class xyz.tcheeric.cashu.voucher.domain.VoucherSecret.Builder
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, BackingStrategy, double, int, Map<String, Object>) - 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, BackingStrategy, double, int, Map<String, Object>) - 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.
- expiresAt(Long) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret.Builder
F
- faceDecimals(int) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret.Builder
- faceValue(long) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret.Builder
- 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.
- FIXED - Enum constant in enum class xyz.tcheeric.cashu.voucher.domain.BackingStrategy
-
Fixed minimal sat backing for non-splittable vouchers.
- 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
- hasFineGrainedSplits() - Method in enum class xyz.tcheeric.cashu.voucher.domain.BackingStrategy
-
Returns true if this strategy supports fine-grained splits.
- 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.
- isSplittable() - Method in enum class xyz.tcheeric.cashu.voucher.domain.BackingStrategy
-
Returns true if this strategy allows splitting.
- issuanceRatio(double) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret.Builder
- ISSUED - Enum constant in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
-
Voucher has been issued and published to the Nostr ledger.
- issuerId(String) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret.Builder
- 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
- memo(String) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret.Builder
- merchantMetadata(Map<String, Object>) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret.Builder
- MINIMAL - Enum constant in enum class xyz.tcheeric.cashu.voucher.domain.BackingStrategy
-
Low constant sat backing for occasional splits.
- 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
P
- PROPORTIONAL - Enum constant in enum class xyz.tcheeric.cashu.voucher.domain.BackingStrategy
-
Proportional sat backing scaled to face value for precise splits.
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 using Schnorr signatures.
- Signature Format - Search tag in class xyz.tcheeric.cashu.voucher.domain.VoucherSignatureService
- Section
- 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
- Strategy Comparison - Search tag in enum class xyz.tcheeric.cashu.voucher.domain.BackingStrategy
- 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
- unit(String) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret.Builder
- 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.BackingStrategy
-
Returns the enum constant of this class with the specified name.
- 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.BackingStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- 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.
- voucherId(String) - Method in class xyz.tcheeric.cashu.voucher.domain.VoucherSecret.Builder
- VoucherSecret - Class in xyz.tcheeric.cashu.voucher.domain
-
Gift card voucher secret (Model B - spendable only at issuing merchant).
- VoucherSecret.Builder - Class in xyz.tcheeric.cashu.voucher.domain
-
Builder for VoucherSecret with fluent API.
- 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 secp256k1/Schnorr 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
All Classes and Interfaces|All Packages