Skip to content

Commit 9e6a258

Browse files
committed
bump buildervault to 70.0.0
1 parent cfdc2a1 commit 9e6a258

File tree

3 files changed

+64
-75
lines changed

3 files changed

+64
-75
lines changed

solana-staking/buildervault/nodejs/package-lock.json

+56-68
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

solana-staking/buildervault/nodejs/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"@sepior/tsmsdkv2": "68.0.0",
3+
"@sepior/tsmsdkv2": "^70.0.0",
44
"@solana/web3.js": "^1.95.8",
55
"@types/node": "^20.14.12",
66
"bs58": "^6.0.0",
@@ -11,5 +11,7 @@
1111
"scripts": {
1212
"start": "node --no-warnings=ExperimentalWarning --loader ts-node/esm"
1313
},
14-
"exclude": ["node_modules"]
14+
"exclude": [
15+
"node_modules"
16+
]
1517
}

solana-staking/buildervault/nodejs/solana-stake-bv.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-ignore
21
import { TSMClient, Configuration, SessionConfig, curves } from "@sepior/tsmsdkv2";
32
import web3 from '@solana/web3.js';
43
import bs58 from 'bs58';
@@ -64,11 +63,11 @@ async function main() {
6463

6564
const config0 = await new Configuration("https://tsm-sandbox.prd.wallet.blockdaemon.app:8080");
6665
await config0.withPublicKeyPinning(cert0.publicKey.export({type: "spki",format: "der"}));
67-
await config0.withMTLSAuthentication("./client.key", "./client.crt",false, "", "", "");
66+
await config0.withMTLSAuthentication("./client.key", "./client.crt",false, "", "", "", "");
6867

6968
const config1 = await new Configuration("https://tsm-sandbox.prd.wallet.blockdaemon.app:8081")
7069
await config1.withPublicKeyPinning(cert1.publicKey.export({type: "spki",format: "der"}));
71-
await config1.withMTLSAuthentication("./client.key", "./client.crt",false, "", "", "");
70+
await config1.withMTLSAuthentication("./client.key", "./client.crt",false, "", "", "", "");
7271

7372
// Create clients for two MPC nodes
7473
const clients: TSMClient[] = [
@@ -105,7 +104,7 @@ async function main() {
105104

106105
// Convert the Ed25519 public key to Base58 Solana address
107106

108-
const compressedPublicKey = await clients[0].Utils().pkixPublicKeyToCompressedPoint(publickeys[0]);
107+
const compressedPublicKey = await clients[0].Utils().jsonPublicKeyToCompressedPoint(publickeys[0]);
109108
const delegatorAddress = new web3.PublicKey(bs58.encode(compressedPublicKey));
110109
console.log(`Solana address of derived key m/44/501: ${delegatorAddress}\n`);
111110

@@ -258,7 +257,7 @@ async function signTx(
258257
partialSignatures
259258
);
260259

261-
return signature.signature;
260+
return signature;
262261
}
263262

264263
async function getKeyId(

0 commit comments

Comments
 (0)