Uses of Class
xyz.tcheeric.cashu.voucher.domain.SignedVoucher
Packages that use SignedVoucher
-
Uses of SignedVoucher in xyz.tcheeric.cashu.voucher.domain
Methods in xyz.tcheeric.cashu.voucher.domain that return SignedVoucherModifier and TypeMethodDescriptionstatic SignedVoucherSignedVoucher.create(@NonNull UUID voucherId, @NonNull String issuerId, @NonNull String unit, long faceValue, Long expiresAt, String memo, @NonNull BackingStrategy backingStrategy, double issuanceRatio, int faceDecimals, @NonNull String issuerSignature, @NonNull String issuerPublicKey) Creates a signed voucher with all voucher details.static SignedVoucherVoucherSignatureService.createSigned(@NonNull xyz.tcheeric.cashu.common.VoucherSecret secret, @NonNull String issuerPrivateKeyHex, @NonNull String issuerPublicKeyHex) Creates a signed voucher by signing the secret and setting the signature/pubkey tags.Methods in xyz.tcheeric.cashu.voucher.domain with parameters of type SignedVoucherModifier and TypeMethodDescriptionVoucherFingerprint.compute(SignedVoucher voucher) Computes the fingerprint for a signed voucher.static booleanVoucherValidator.isValid(@NonNull SignedVoucher voucher) Quick check if a voucher is valid (no detailed errors).VoucherValidator.validate(@NonNull SignedVoucher voucher) Validates a signed voucher.VoucherValidator.validateExpiryOnly(@NonNull SignedVoucher voucher) Validates just the expiry of a voucher.VoucherValidator.validateSignatureOnly(@NonNull SignedVoucher voucher) Validates just the cryptographic signature of a voucher.VoucherValidator.validateWithIssuer(@NonNull SignedVoucher voucher, @NonNull String expectedIssuerId) Validates a signed voucher and checks that it was issued by the expected issuer.