isPqEnvelope static method
Whether payload looks like a post-quantum envelope.
A routing hint so a client can skip a decapsulation on ordinary NIP-17 messages — not proof. Decryption is the only real check.
Implementation
static bool isPqEnvelope(String payload) {
final ptr = payload.toNativeUtf8();
try {
return rust_lib.pqIsEnvelope(ptr) == 1;
} finally {
calloc.free(ptr);
}
}