signet.js 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/browser/index.browser.cjs +2 -2
- package/browser/index.browser.cjs.map +1 -1
- package/browser/index.browser.js +2 -2
- package/browser/index.browser.js.map +1 -1
- package/node/index.node.cjs +2 -2
- package/node/index.node.cjs.map +1 -1
- package/node/index.node.js +2 -2
- package/node/index.node.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.cts +14 -14
- package/types/index.d.ts +14 -14
package/package.json
CHANGED
package/types/index.d.cts
CHANGED
|
@@ -620,7 +620,7 @@ declare abstract class Chain<TransactionRequest, UnsignedTransaction> {
|
|
|
620
620
|
* @returns Promise resolving to an object containing:
|
|
621
621
|
* - transaction: The unsigned transaction
|
|
622
622
|
* - hashesToSign: Array of payloads to be signed by MPC. The order of these payloads must match
|
|
623
|
-
* the order of signatures provided to
|
|
623
|
+
* the order of signatures provided to finalizeTransactionSigning()
|
|
624
624
|
*/
|
|
625
625
|
abstract prepareTransactionForSigning(transactionRequest: TransactionRequest): Promise<{
|
|
626
626
|
transaction: UnsignedTransaction;
|
|
@@ -635,7 +635,7 @@ declare abstract class Chain<TransactionRequest, UnsignedTransaction> {
|
|
|
635
635
|
* as the payloads returned by prepareTransactionForSigning()
|
|
636
636
|
* @returns The serialized signed transaction ready for broadcast
|
|
637
637
|
*/
|
|
638
|
-
abstract
|
|
638
|
+
abstract finalizeTransactionSigning(params: {
|
|
639
639
|
transaction: UnsignedTransaction;
|
|
640
640
|
rsvSignatures: RSVSignature[];
|
|
641
641
|
}): string;
|
|
@@ -683,10 +683,10 @@ declare class EVM extends Chain<EVMTransactionRequest, EVMUnsignedTransaction> {
|
|
|
683
683
|
hashesToSign: HashToSign[];
|
|
684
684
|
}>;
|
|
685
685
|
prepareMessageForSigning(message: EVMMessage): Promise<{
|
|
686
|
-
|
|
686
|
+
hashToSign: HashToSign;
|
|
687
687
|
}>;
|
|
688
688
|
prepareTypedDataForSigning(typedDataRequest: EVMTypedData): Promise<{
|
|
689
|
-
|
|
689
|
+
hashToSign: HashToSign;
|
|
690
690
|
}>;
|
|
691
691
|
/**
|
|
692
692
|
* This implementation is a common step for Biconomy and Alchemy.
|
|
@@ -697,21 +697,21 @@ declare class EVM extends Chain<EVMTransactionRequest, EVMUnsignedTransaction> {
|
|
|
697
697
|
*/
|
|
698
698
|
prepareUserOpForSigning(userOp: UserOperationV7 | UserOperationV6, entryPointAddress?: Address, chainIdArgs?: number): Promise<{
|
|
699
699
|
userOp: UserOperationV7 | UserOperationV6;
|
|
700
|
-
|
|
700
|
+
hashToSign: HashToSign;
|
|
701
701
|
}>;
|
|
702
|
-
|
|
702
|
+
finalizeTransactionSigning({ transaction, rsvSignatures, }: {
|
|
703
703
|
transaction: EVMUnsignedTransaction;
|
|
704
704
|
rsvSignatures: RSVSignature[];
|
|
705
705
|
}): `0x02${string}`;
|
|
706
|
-
|
|
707
|
-
|
|
706
|
+
finalizeMessageSigning({ rsvSignature, }: {
|
|
707
|
+
rsvSignature: RSVSignature;
|
|
708
708
|
}): Hex;
|
|
709
|
-
|
|
710
|
-
|
|
709
|
+
finalizeTypedDataSigning({ rsvSignature, }: {
|
|
710
|
+
rsvSignature: RSVSignature;
|
|
711
711
|
}): Hex;
|
|
712
|
-
|
|
712
|
+
finalizeUserOpSigning({ userOp, rsvSignature, }: {
|
|
713
713
|
userOp: UserOperationV7 | UserOperationV6;
|
|
714
|
-
|
|
714
|
+
rsvSignature: RSVSignature;
|
|
715
715
|
}): UserOperationV7 | UserOperationV6;
|
|
716
716
|
broadcastTx(txSerialized: `0x${string}`): Promise<Hash>;
|
|
717
717
|
}
|
|
@@ -809,7 +809,7 @@ declare class Bitcoin extends Chain<BTCTransactionRequest, BTCUnsignedTransactio
|
|
|
809
809
|
transaction: BTCUnsignedTransaction;
|
|
810
810
|
hashesToSign: HashToSign[];
|
|
811
811
|
}>;
|
|
812
|
-
|
|
812
|
+
finalizeTransactionSigning({ transaction: { psbt, publicKey }, rsvSignatures, }: {
|
|
813
813
|
transaction: BTCUnsignedTransaction;
|
|
814
814
|
rsvSignatures: RSVSignature[];
|
|
815
815
|
}): string;
|
|
@@ -858,7 +858,7 @@ declare class Cosmos extends Chain<CosmosTransactionRequest, CosmosUnsignedTrans
|
|
|
858
858
|
transaction: CosmosUnsignedTransaction;
|
|
859
859
|
hashesToSign: HashToSign[];
|
|
860
860
|
}>;
|
|
861
|
-
|
|
861
|
+
finalizeTransactionSigning({ transaction, rsvSignatures, }: {
|
|
862
862
|
transaction: CosmosUnsignedTransaction;
|
|
863
863
|
rsvSignatures: RSVSignature[];
|
|
864
864
|
}): string;
|
package/types/index.d.ts
CHANGED
|
@@ -620,7 +620,7 @@ declare abstract class Chain<TransactionRequest, UnsignedTransaction> {
|
|
|
620
620
|
* @returns Promise resolving to an object containing:
|
|
621
621
|
* - transaction: The unsigned transaction
|
|
622
622
|
* - hashesToSign: Array of payloads to be signed by MPC. The order of these payloads must match
|
|
623
|
-
* the order of signatures provided to
|
|
623
|
+
* the order of signatures provided to finalizeTransactionSigning()
|
|
624
624
|
*/
|
|
625
625
|
abstract prepareTransactionForSigning(transactionRequest: TransactionRequest): Promise<{
|
|
626
626
|
transaction: UnsignedTransaction;
|
|
@@ -635,7 +635,7 @@ declare abstract class Chain<TransactionRequest, UnsignedTransaction> {
|
|
|
635
635
|
* as the payloads returned by prepareTransactionForSigning()
|
|
636
636
|
* @returns The serialized signed transaction ready for broadcast
|
|
637
637
|
*/
|
|
638
|
-
abstract
|
|
638
|
+
abstract finalizeTransactionSigning(params: {
|
|
639
639
|
transaction: UnsignedTransaction;
|
|
640
640
|
rsvSignatures: RSVSignature[];
|
|
641
641
|
}): string;
|
|
@@ -683,10 +683,10 @@ declare class EVM extends Chain<EVMTransactionRequest, EVMUnsignedTransaction> {
|
|
|
683
683
|
hashesToSign: HashToSign[];
|
|
684
684
|
}>;
|
|
685
685
|
prepareMessageForSigning(message: EVMMessage): Promise<{
|
|
686
|
-
|
|
686
|
+
hashToSign: HashToSign;
|
|
687
687
|
}>;
|
|
688
688
|
prepareTypedDataForSigning(typedDataRequest: EVMTypedData): Promise<{
|
|
689
|
-
|
|
689
|
+
hashToSign: HashToSign;
|
|
690
690
|
}>;
|
|
691
691
|
/**
|
|
692
692
|
* This implementation is a common step for Biconomy and Alchemy.
|
|
@@ -697,21 +697,21 @@ declare class EVM extends Chain<EVMTransactionRequest, EVMUnsignedTransaction> {
|
|
|
697
697
|
*/
|
|
698
698
|
prepareUserOpForSigning(userOp: UserOperationV7 | UserOperationV6, entryPointAddress?: Address, chainIdArgs?: number): Promise<{
|
|
699
699
|
userOp: UserOperationV7 | UserOperationV6;
|
|
700
|
-
|
|
700
|
+
hashToSign: HashToSign;
|
|
701
701
|
}>;
|
|
702
|
-
|
|
702
|
+
finalizeTransactionSigning({ transaction, rsvSignatures, }: {
|
|
703
703
|
transaction: EVMUnsignedTransaction;
|
|
704
704
|
rsvSignatures: RSVSignature[];
|
|
705
705
|
}): `0x02${string}`;
|
|
706
|
-
|
|
707
|
-
|
|
706
|
+
finalizeMessageSigning({ rsvSignature, }: {
|
|
707
|
+
rsvSignature: RSVSignature;
|
|
708
708
|
}): Hex;
|
|
709
|
-
|
|
710
|
-
|
|
709
|
+
finalizeTypedDataSigning({ rsvSignature, }: {
|
|
710
|
+
rsvSignature: RSVSignature;
|
|
711
711
|
}): Hex;
|
|
712
|
-
|
|
712
|
+
finalizeUserOpSigning({ userOp, rsvSignature, }: {
|
|
713
713
|
userOp: UserOperationV7 | UserOperationV6;
|
|
714
|
-
|
|
714
|
+
rsvSignature: RSVSignature;
|
|
715
715
|
}): UserOperationV7 | UserOperationV6;
|
|
716
716
|
broadcastTx(txSerialized: `0x${string}`): Promise<Hash>;
|
|
717
717
|
}
|
|
@@ -809,7 +809,7 @@ declare class Bitcoin extends Chain<BTCTransactionRequest, BTCUnsignedTransactio
|
|
|
809
809
|
transaction: BTCUnsignedTransaction;
|
|
810
810
|
hashesToSign: HashToSign[];
|
|
811
811
|
}>;
|
|
812
|
-
|
|
812
|
+
finalizeTransactionSigning({ transaction: { psbt, publicKey }, rsvSignatures, }: {
|
|
813
813
|
transaction: BTCUnsignedTransaction;
|
|
814
814
|
rsvSignatures: RSVSignature[];
|
|
815
815
|
}): string;
|
|
@@ -858,7 +858,7 @@ declare class Cosmos extends Chain<CosmosTransactionRequest, CosmosUnsignedTrans
|
|
|
858
858
|
transaction: CosmosUnsignedTransaction;
|
|
859
859
|
hashesToSign: HashToSign[];
|
|
860
860
|
}>;
|
|
861
|
-
|
|
861
|
+
finalizeTransactionSigning({ transaction, rsvSignatures, }: {
|
|
862
862
|
transaction: CosmosUnsignedTransaction;
|
|
863
863
|
rsvSignatures: RSVSignature[];
|
|
864
864
|
}): string;
|