Skip to content

Commit

Permalink
+1
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Nov 19, 2023
1 parent af8de22 commit f464b24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crypto/key/key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace $ {

export class $mol_crypto_key extends $mol_buffer {

static from< This extends typeof $mol_crypto_key >( this: This, serial: string | Uint8Array ) {
static from< This extends typeof $mol_crypto_key >( this: This, serial: string | ArrayBufferView ) {

if( typeof serial === 'string' ) {
serial = new Uint8Array([
Expand Down Expand Up @@ -85,7 +85,7 @@ namespace $ {
)

const { x, y, d } = await $mol_crypto_native.subtle.exportKey( 'jwk', pair.privateKey )
return $mol_crypto_key_private.from( x + y! + d! )
return this.from( x + y! + d! )

}

Expand Down
2 changes: 1 addition & 1 deletion crypto/key/key.web.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace $ {
$mol_test({

async 'str sizes'() {
async 'str & bin sizes'() {

const key_private = await $$.$mol_crypto_key_private.generate()
const key_public = key_private.public()
Expand Down

0 comments on commit f464b24

Please sign in to comment.