@@ -211,15 +211,15 @@ interface MOSAICPublicKey {
211211 slss: SLSSPublicKey
212212 tdd: TDDPublicKey
213213 egrw: EGRWPublicKey
214- binding: Uint8Array // 32-byte cryptographic binding hash
214+ binding: Uint8Array // 32-byte cryptographic binding hash
215215 params: MOSAICParams
216216}
217217
218218interface MOSAICSecretKey {
219219 slss: SLSSSecretKey
220220 tdd: TDDSecretKey
221221 egrw: EGRWSecretKey
222- seed: Uint8Array // Original seed for implicit rejection
222+ seed: Uint8Array // Original seed for implicit rejection
223223 publicKeyHash: Uint8Array
224224}
225225
@@ -236,9 +236,9 @@ interface MOSAICCiphertext {
236236}
237237
238238interface MOSAICSignature {
239- commitment: Uint8Array // 32 bytes
240- challenge: Uint8Array // 32 bytes
241- response: Uint8Array // 64 bytes
239+ commitment: Uint8Array // 32 bytes
240+ challenge: Uint8Array // 32 bytes
241+ response: Uint8Array // 64 bytes
242242}
243243
244244interface EncapsulationResult {
@@ -574,18 +574,24 @@ evictOldestCacheEntries(): void
574574import crypto from ' k-mosaic'
575575
576576const keyPair = await crypto .kem .generateKeyPair ()
577- const { ciphertext, sharedSecret } = await crypto .kem .encapsulate (keyPair .publicKey )
578-
579- const signature = await crypto .sign .sign (message , keyPair .secretKey , keyPair .publicKey )
577+ const { ciphertext, sharedSecret } = await crypto .kem .encapsulate (
578+ keyPair .publicKey ,
579+ )
580+
581+ const signature = await crypto .sign .sign (
582+ message ,
583+ keyPair .secretKey ,
584+ keyPair .publicKey ,
585+ )
580586const isValid = await crypto .sign .verify (message , signature , keyPair .publicKey )
581587```
582588
583589### Version Information
584590
585591``` typescript
586- const ALGORITHM_NAME = ' kMOSAIC' // Algorithm name
587- const ALGORITHM_VERSION = ' 1.0' // Algorithm version
588- const CLI_VERSION = ' 1.0.0' // CLI version
592+ const ALGORITHM_NAME = ' kMOSAIC' // Algorithm name
593+ const ALGORITHM_VERSION = ' 1.0' // Algorithm version
594+ const CLI_VERSION = ' 1.0.0' // CLI version
589595
590596interface AlgorithmInfo {
591597 name: string
0 commit comments