Uses of Class
xyz.tcheeric.cashu.voucher.domain.VoucherSecret
Packages that use VoucherSecret
-
Uses of VoucherSecret in xyz.tcheeric.cashu.voucher.domain
Methods in xyz.tcheeric.cashu.voucher.domain that return VoucherSecretModifier and TypeMethodDescriptionstatic VoucherSecretVoucherSecret.create(@NonNull String issuerId, @NonNull String unit, long faceValue, Long expiresAt, String memo) Creates a new voucher with auto-generated UUID.static VoucherSecretVoucherSecret.create(@NonNull String voucherId, @NonNull String issuerId, @NonNull String unit, long faceValue, Long expiresAt, String memo) Creates a voucher with specified voucher ID.Methods in xyz.tcheeric.cashu.voucher.domain with parameters of type VoucherSecretModifier and TypeMethodDescriptionstatic SignedVoucherVoucherSignatureService.createSigned(@NonNull VoucherSecret secret, @NonNull String issuerPrivateKeyHex, @NonNull String issuerPublicKeyHex) Creates a signed voucher by signing the secret and wrapping it.voidVoucherSecretSerializer.serialize(VoucherSecret value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) static byte[]VoucherSignatureService.sign(@NonNull VoucherSecret secret, @NonNull String issuerPrivateKeyHex) Signs a voucher secret with an issuer's private key.static booleanVoucherSignatureService.verify(@NonNull VoucherSecret secret, @lombok.NonNull byte[] signature, @NonNull String issuerPublicKeyHex) Verifies a voucher signature using the issuer's public key.Constructors in xyz.tcheeric.cashu.voucher.domain with parameters of type VoucherSecretModifierConstructorDescriptionSignedVoucher(@NonNull VoucherSecret secret, @lombok.NonNull byte[] issuerSignature, @NonNull String issuerPublicKey) Creates a signed voucher.