Context
net-did currently has a BBS test that mints keypairs by P/Invoking the internal ZkryptiumNative.bbs_keygen directly. After net-did deletes its in-repo BBS code, that FFI becomes internal to NetCrypto (InternalsVisibleTo = NetCrypto.Tests only), so no consumer has a raw BBS keygen path.
The public surface offers:
DefaultKeyGenerator.Generate(KeyType.Bls12381G2) (and Bls12381G1) → returns a KeyPair
DefaultBbsCryptoProvider.Sign / Verify / DeriveProof / VerifyProof
…but no public way to mint the raw 32-byte secret / 96-byte public key pair the net-did test uses.
Ask
- Document that the supported BBS keygen path for consumers is
DefaultKeyGenerator.Generate(KeyType.Bls12381G2) / Bls12381G1, and that raw sk/pk minting is intentionally internal.
- (Optional, low priority) Expose a public BBS keygen helper if you want consumers to exercise raw-FFI keygen directly.
net-did will simply delete its FFI-based BBS test — BBS is now NetCrypto's responsibility and round-trip coverage already lives in NetCrypto.Tests. No upstream change is strictly required; this issue is primarily a documentation/clarification request.
Severity
Minor.
Context
net-didcurrently has a BBS test that mints keypairs by P/Invoking the internalZkryptiumNative.bbs_keygendirectly. Afternet-diddeletes its in-repo BBS code, that FFI becomes internal to NetCrypto (InternalsVisibleTo=NetCrypto.Testsonly), so no consumer has a raw BBS keygen path.The public surface offers:
DefaultKeyGenerator.Generate(KeyType.Bls12381G2)(andBls12381G1) → returns aKeyPairDefaultBbsCryptoProvider.Sign / Verify / DeriveProof / VerifyProof…but no public way to mint the raw 32-byte secret / 96-byte public key pair the net-did test uses.
Ask
DefaultKeyGenerator.Generate(KeyType.Bls12381G2)/Bls12381G1, and that raw sk/pk minting is intentionally internal.net-didwill simply delete its FFI-based BBS test — BBS is now NetCrypto's responsibility and round-trip coverage already lives inNetCrypto.Tests. No upstream change is strictly required; this issue is primarily a documentation/clarification request.Severity
Minor.