Skip to content

Commit 94bcb19

Browse files
improve doc comment
1 parent d3fbecf commit 94bcb19

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

contracts/src/crypto/ElGamal.compact

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ module ElGamal {
111111
*
112112
* @dev Domain separation here is load-bearing, not cosmetic. This output is
113113
* the private key protecting every ciphertext held under an account. Public
114-
* account identifiers elsewhere in the library are derived as
115-
* `persistentHash([secretKey])` (`Utils.computeAccountId`), and that
116-
* identifier is stored in the clear as a ledger map key. Untagged, this
117-
* circuit would compute that same hash, so a secret used in both roles would
114+
* account identifiers derived from `Utils.computeAccountId`, for example,
115+
* are computed as `persistentHash([secretKey])`, and that identifier
116+
* is stored in the clear as a ledger map key. Untagged, this circuit
117+
* would compute that same hash, so a secret used in both roles would
118118
* have its encryption key recoverable from a published identifier by applying
119119
* `degradeToTransient`. The tag makes the two derivations unrelated, so a
120120
* wallet MAY safely derive its account secret and its encryption secret from

0 commit comments

Comments
 (0)