mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-19 23:58:11 +00:00
Move type definition to the top
This commit is contained in:
parent
ab3b23f100
commit
661c6227e7
@ -17,6 +17,11 @@ const SignatureLength = 65;
|
|||||||
|
|
||||||
export const PrivateKeySize = 32;
|
export const PrivateKeySize = 32;
|
||||||
|
|
||||||
|
export type Signature = {
|
||||||
|
signature: Uint8Array;
|
||||||
|
publicKey: Uint8Array | undefined;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encode the payload pre-encryption.
|
* Encode the payload pre-encryption.
|
||||||
*
|
*
|
||||||
@ -76,11 +81,6 @@ export async function clearEncode(
|
|||||||
return { payload: envelope, sig };
|
return { payload: envelope, sig };
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Signature = {
|
|
||||||
signature: Uint8Array;
|
|
||||||
publicKey: Uint8Array | undefined;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Decode a decrypted payload.
|
* Decode a decrypted payload.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user