public byte [ ] verifyVrfSignature ( byte [ ] publicKey , byte [ ] message , byte [ ] signature ) throws VrfSignatureVerificationFailedException { if ( publicKey == null || publicKey . length != 32 ) { throw new IllegalArgumentException ( "Invalid public key!" ) ; } if ( message == null || signature == null || signature . length != 96 ) { throw new VrfSignatureVerificationFailedException ( "Invalid message or signature format" ) ; } return provider . verifyVrfSignature ( publicKey , message , signature ) ; }
Verify a Unique Curve25519 signature .