Skip to content

Commit

Permalink
Add PrivateSecretManager to Node.js (#1323)
Browse files Browse the repository at this point in the history
* Add `PrivateSecretManager` to Node.js

* fmt

* changelog

* Update bindings/nodejs/CHANGELOG.md

Co-authored-by: Thibault Martinez <[email protected]>

---------

Co-authored-by: Thibault Martinez <[email protected]>
  • Loading branch information
abdulmth and thibault-martinez authored Sep 25, 2023
1 parent 2a1b36d commit 38ae04c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ participation = ["iota-sdk/participation"]
rocksdb = ["iota-sdk/rocksdb"]
storage = ["iota-sdk/storage"]
stronghold = ["iota-sdk/stronghold"]
private_key_secret_manager = ["iota-sdk/private_key_secret_manager"]
1 change: 1 addition & 0 deletions bindings/nodejs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `GenericQueryParameter, UnlockableByAddress` types;
- `Irc27Metadata` and `Irc30Metadata` helpers;
- `Utils::outputHexBytes`;
- `PrivateKeySecretManager`;

## 1.0.12 - 2023-09-25

Expand Down
1 change: 1 addition & 0 deletions bindings/nodejs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ iota-sdk-bindings-core = { path = "../core", default-features = false, features
"participation",
"rocksdb",
"mqtt",
"private_key_secret_manager"
] }

log = { version = "0.4.20", default-features = false }
Expand Down
6 changes: 6 additions & 0 deletions bindings/nodejs/lib/types/secret_manager/secret-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,17 @@ export interface StrongholdSecretManager {
};
}

/** Secret manager based on a single ED25519 private key. */
export interface PrivateKeySecretManager {
privateKey: HexEncodedString;
}

/** Supported secret managers */
export type SecretManagerType =
| LedgerNanoSecretManager
| MnemonicSecretManager
| StrongholdSecretManager
| PrivateKeySecretManager
| PlaceholderSecretManager;

export interface Secp256k1EcdsaSignature {
Expand Down

0 comments on commit 38ae04c

Please sign in to comment.