Index

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

B

BackingStrategy - Enum Class in xyz.tcheeric.cashu.voucher.domain
Backing strategy for voucher token amounts.

C

canBeRedeemed() - Method in enum class xyz.tcheeric.cashu.voucher.domain.VoucherStatus
Checks if this status allows the voucher to be redeemed.
create(UUID, String, String, long, Long, String, BackingStrategy, double, int, String, String) - Static method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Creates a signed voucher with all voucher details.
createSigned(VoucherSecret, String, String) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherSignatureService
Creates a signed voucher by signing the secret and setting the signature/pubkey tags.
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
 
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.
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

getBackingStrategy() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
 
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.
getExpiresAt() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
 
getFaceDecimals() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
 
getFaceValue() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
 
getIssuanceRatio() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
 
getIssuerId() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
 
getIssuerPublicKey() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Returns the issuer public key.
getIssuerSignature() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Returns the issuer signature as bytes.
getMemo() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
 
getUnit() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
 
getVoucherId() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
 

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
 

I

isExpired() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Checks if this voucher has expired.
isSplittable() - Method in enum class xyz.tcheeric.cashu.voucher.domain.BackingStrategy
Returns true if this strategy allows splitting.
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(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

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 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

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) - Constructor for class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Creates a signed voucher from a VoucherSecret that already has signature and public key set.
SignedVoucher(VoucherSecret, byte[], String) - Constructor for class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Creates a signed voucher from components (for deserialization compatibility).
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
toCbor(Map<String, Object>) - Static method in class xyz.tcheeric.cashu.voucher.domain.util.VoucherSerializationUtils
Serializes a map to CBOR bytes in canonical form.
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.VoucherValidator.ValidationResult
 
toStringWithMetadata() - Method in class xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Returns a detailed string representation including full secret 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.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) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherSignatureService
Verifies a voucher secret's signature using the signature and public key from its tags.
verify(VoucherSecret, byte[], String) - Static method in class xyz.tcheeric.cashu.voucher.domain.VoucherSignatureService
Verifies a voucher signature using the issuer's public key.
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
 
B C E F G H I K M P R S T U V X 
All Classes and Interfaces|All Packages