@@ -30,21 +30,21 @@ export function crypto_box_easy(
3030 nonce : Uint8Array ,
3131 publicKey : Uint8Array ,
3232 privateKey : Uint8Array ,
33- outputFormat ?: Uint8ArrayOutputFormat | null
33+ outputFormat ?: Uint8ArrayOutputFormat | null ,
3434) : Uint8Array ;
3535export function crypto_box_easy (
3636 message : string | Uint8Array ,
3737 nonce : Uint8Array ,
3838 publicKey : Uint8Array ,
3939 privateKey : Uint8Array ,
40- outputFormat : StringOutputFormat
40+ outputFormat : StringOutputFormat ,
4141) : string ;
4242export function crypto_box_easy (
4343 message : string | Uint8Array ,
4444 nonce : Uint8Array ,
4545 publicKey : Uint8Array ,
4646 privateKey : Uint8Array ,
47- outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null
47+ outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null ,
4848) : Uint8Array | string {
4949 if ( typeof message === "string" ) {
5050 throw new Error ( "string message not supported" ) ;
@@ -65,13 +65,13 @@ export function crypto_box_easy(
6565}
6666
6767export function crypto_box_keypair (
68- outputFormat ?: Uint8ArrayOutputFormat | null
68+ outputFormat ?: Uint8ArrayOutputFormat | null ,
6969) : KeyPair ;
7070export function crypto_box_keypair (
71- outputFormat : StringOutputFormat
71+ outputFormat : StringOutputFormat ,
7272) : StringKeyPair ;
7373export function crypto_box_keypair (
74- outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null
74+ outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null ,
7575) : KeyPair | StringKeyPair {
7676 if (
7777 outputFormat === "hex" ||
@@ -88,21 +88,21 @@ export function crypto_box_open_easy(
8888 nonce : Uint8Array ,
8989 publicKey : Uint8Array ,
9090 privateKey : Uint8Array ,
91- outputFormat ?: Uint8ArrayOutputFormat | null
91+ outputFormat ?: Uint8ArrayOutputFormat | null ,
9292) : Uint8Array ;
9393export function crypto_box_open_easy (
9494 ciphertext : string | Uint8Array ,
9595 nonce : Uint8Array ,
9696 publicKey : Uint8Array ,
9797 privateKey : Uint8Array ,
98- outputFormat : StringOutputFormat
98+ outputFormat : StringOutputFormat ,
9999) : string ;
100100export function crypto_box_open_easy (
101101 ciphertext : string | Uint8Array ,
102102 nonce : Uint8Array ,
103103 publicKey : Uint8Array ,
104104 privateKey : Uint8Array ,
105- outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null
105+ outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null ,
106106) : Uint8Array | string {
107107 if ( typeof ciphertext === "string" ) {
108108 throw new Error ( "string ciphertext not supported" ) ;
@@ -125,17 +125,17 @@ export function crypto_box_open_easy(
125125export function crypto_box_seal (
126126 message : string | Uint8Array ,
127127 publicKey : Uint8Array ,
128- outputFormat ?: Uint8ArrayOutputFormat | null
128+ outputFormat ?: Uint8ArrayOutputFormat | null ,
129129) : Uint8Array ;
130130export function crypto_box_seal (
131131 message : string | Uint8Array ,
132132 publicKey : Uint8Array ,
133- outputFormat : StringOutputFormat
133+ outputFormat : StringOutputFormat ,
134134) : string ;
135135export function crypto_box_seal (
136136 message : string | Uint8Array ,
137137 publicKey : Uint8Array ,
138- outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null
138+ outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null ,
139139) : Uint8Array | string {
140140 if ( typeof message === "string" ) {
141141 throw new Error ( "string message not supported" ) ;
@@ -157,19 +157,19 @@ export function crypto_box_seal_open(
157157 ciphertext : string | Uint8Array ,
158158 publicKey : Uint8Array ,
159159 privateKey : Uint8Array ,
160- outputFormat ?: Uint8ArrayOutputFormat | null
160+ outputFormat ?: Uint8ArrayOutputFormat | null ,
161161) : Uint8Array ;
162162export function crypto_box_seal_open (
163163 ciphertext : string | Uint8Array ,
164164 publicKey : Uint8Array ,
165165 privateKey : Uint8Array ,
166- outputFormat : StringOutputFormat
166+ outputFormat : StringOutputFormat ,
167167) : string ;
168168export function crypto_box_seal_open (
169169 ciphertext : string | Uint8Array ,
170170 publicKey : Uint8Array ,
171171 privateKey : Uint8Array ,
172- outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null
172+ outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null ,
173173) : Uint8Array | string {
174174 if ( typeof ciphertext === "string" ) {
175175 throw new Error ( "string ciphertext not supported" ) ;
@@ -189,13 +189,13 @@ export function crypto_box_seal_open(
189189}
190190
191191export function crypto_sign_keypair (
192- outputFormat ?: Uint8ArrayOutputFormat | null
192+ outputFormat ?: Uint8ArrayOutputFormat | null ,
193193) : KeyPair ;
194194export function crypto_sign_keypair (
195- outputFormat : StringOutputFormat
195+ outputFormat : StringOutputFormat ,
196196) : StringKeyPair ;
197197export function crypto_sign_keypair (
198- outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null
198+ outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null ,
199199) : KeyPair | StringKeyPair {
200200 if (
201201 outputFormat === "hex" ||
@@ -210,17 +210,17 @@ export function crypto_sign_keypair(
210210export function crypto_sign_detached (
211211 message : string | Uint8Array ,
212212 privateKey : Uint8Array ,
213- outputFormat ?: Uint8ArrayOutputFormat | null
213+ outputFormat ?: Uint8ArrayOutputFormat | null ,
214214) : Uint8Array ;
215215export function crypto_sign_detached (
216216 message : string | Uint8Array ,
217217 privateKey : Uint8Array ,
218- outputFormat : StringOutputFormat
218+ outputFormat : StringOutputFormat ,
219219) : string ;
220220export function crypto_sign_detached (
221221 message : string | Uint8Array ,
222222 privateKey : Uint8Array ,
223- outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null
223+ outputFormat ?: Uint8ArrayOutputFormat | StringOutputFormat | null ,
224224) : Uint8Array | string {
225225 if ( typeof message === "string" ) {
226226 throw new Error ( "string message not supported" ) ;
@@ -241,7 +241,7 @@ export function crypto_sign_detached(
241241export function crypto_sign_verify_detached (
242242 signature : Uint8Array ,
243243 message : string | Uint8Array ,
244- publicKey : Uint8Array
244+ publicKey : Uint8Array ,
245245) : boolean {
246246 if ( typeof message === "string" ) {
247247 throw new Error ( "string message not supported" ) ;
0 commit comments