mirror of
https://github.com/Blah-IM/typescript-core.git
synced 2025-04-30 16:21:10 +00:00
feat: make keypair constructor public
This commit is contained in:
parent
58b50c1ec5
commit
3f7d058e4b
2 changed files with 3 additions and 8 deletions
|
@ -37,11 +37,8 @@ export class BlahKeyPair {
|
|||
return this.internalPrivateKey;
|
||||
}
|
||||
|
||||
private constructor(
|
||||
publicIdentity: BlahPublicKey,
|
||||
privateKey: CryptoKey,
|
||||
) {
|
||||
this.internalPublicKey = publicIdentity;
|
||||
constructor(publicKey: BlahPublicKey, privateKey: CryptoKey) {
|
||||
this.internalPublicKey = publicKey;
|
||||
this.internalPrivateKey = privateKey;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,9 +29,7 @@ export class BlahPublicKey {
|
|||
rawKey,
|
||||
{ name: "Ed25519" },
|
||||
true,
|
||||
[
|
||||
"verify",
|
||||
],
|
||||
["verify"],
|
||||
);
|
||||
return new BlahPublicKey(publicKey, id);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue