mirror of https://github.com/waku-org/js-waku.git
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 type Signature = {
|
||||
signature: Uint8Array;
|
||||
publicKey: Uint8Array | undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
* Encode the payload pre-encryption.
|
||||
*
|
||||
|
@ -76,11 +81,6 @@ export async function clearEncode(
|
|||
return { payload: envelope, sig };
|
||||
}
|
||||
|
||||
export type Signature = {
|
||||
signature: Uint8Array;
|
||||
publicKey: Uint8Array | undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
* Decode a decrypted payload.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue