Skip to content

Commit 889ebde

Browse files
committed
docs: make comment consistent with implementation
1 parent 8a213b9 commit 889ebde

File tree

1 file changed

+4
-2
lines changed
  • packages/wasm-sdk/src/state_transitions/identity

1 file changed

+4
-2
lines changed

packages/wasm-sdk/src/state_transitions/identity/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ impl WasmSdk {
2828
/// * `asset_lock_proof` - The asset lock proof (transaction hex)
2929
/// * `asset_lock_proof_private_key` - The private key that controls the asset lock
3030
/// * `public_keys` - JSON array of public keys to add to the identity. Each key object requirements:
31-
/// - ECDSA_SECP256K1 and BLS12_381: Require `privateKeyHex` or `privateKeyWif` for signing
31+
/// - ECDSA_SECP256K1: Requires `privateKeyHex` or `privateKeyWif` for signing
32+
/// - BLS12_381: Requires `privateKeyHex` for signing (WIF format not supported)
3233
/// - ECDSA_HASH160: Accepts either `privateKeyHex` (to derive hash) or `data` field (base64-encoded 20-byte hash)
3334
///
3435
/// # Implementation Notes
3536
///
3637
/// This function uses SimpleSigner to provide individual signatures for each public key as required.
37-
/// Each ECDSA_SECP256K1 and BLS12_381 key will be signed with its corresponding private key,
38+
/// Each ECDSA_SECP256K1 key will be signed with its corresponding private key (from privateKeyHex or privateKeyWif),
39+
/// and each BLS12_381 key will be signed with its corresponding private key (from privateKeyHex only),
3840
/// ensuring unique signatures per key as required by DPP validation.
3941
///
4042
/// # Returns

0 commit comments

Comments
 (0)