Skip to content

Document BBS keygen path for consumers (Generate(KeyType.Bls12381G2)); consider public raw keygen helper #6

Description

@moisesja

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

  1. Document that the supported BBS keygen path for consumers is DefaultKeyGenerator.Generate(KeyType.Bls12381G2) / Bls12381G1, and that raw sk/pk minting is intentionally internal.
  2. (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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions