-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transactions)!: malleability for multiple signatures
- Loading branch information
Showing
47 changed files
with
974 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export interface TransactionSealSignature { | ||
public_key: string; | ||
signature: { | ||
public_nonce: string; | ||
signature: string; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
export interface TransactionSignature { | ||
public_key: string; | ||
signature: string; | ||
signature: { | ||
public_nonce: string; | ||
signature: string; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
import type { Epoch } from "./Epoch"; | ||
import type { Instruction } from "./Instruction"; | ||
import type { SubstateRequirement } from "./SubstateRequirement"; | ||
import type { TransactionSignature } from "./TransactionSignature"; | ||
import type { TransactionSealSignature } from "./TransactionSealSignature"; | ||
import type { UnsealedTransactionV1 } from "./UnsealedTransactionV1"; | ||
import type { VersionedSubstateId } from "./VersionedSubstateId"; | ||
export interface TransactionV1 { | ||
id: string; | ||
fee_instructions: Array<Instruction>; | ||
instructions: Array<Instruction>; | ||
inputs: Array<SubstateRequirement>; | ||
min_epoch: Epoch | null; | ||
max_epoch: Epoch | null; | ||
signatures: Array<TransactionSignature>; | ||
body: UnsealedTransactionV1; | ||
seal_signature: TransactionSealSignature; | ||
filled_inputs: Array<VersionedSubstateId>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type { TransactionSignature } from "./TransactionSignature"; | ||
import type { UnsignedTransactionV1 } from "./UnsignedTransactionV1"; | ||
export interface UnsealedTransactionV1 { | ||
transaction: UnsignedTransactionV1; | ||
signatures: Array<TransactionSignature>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
import type { Epoch } from "./Epoch"; | ||
import type { Instruction } from "./Instruction"; | ||
import type { SubstateRequirement } from "./SubstateRequirement"; | ||
export interface UnsignedTransaction { | ||
fee_instructions: Array<Instruction>; | ||
instructions: Array<Instruction>; | ||
inputs: Array<SubstateRequirement>; | ||
min_epoch: Epoch | null; | ||
max_epoch: Epoch | null; | ||
} | ||
import type { UnsignedTransactionV1 } from "./UnsignedTransactionV1"; | ||
export type UnsignedTransaction = { | ||
V1: UnsignedTransactionV1; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { Epoch } from "./Epoch"; | ||
import type { Instruction } from "./Instruction"; | ||
import type { SubstateRequirement } from "./SubstateRequirement"; | ||
export interface UnsignedTransactionV1 { | ||
network: number; | ||
fee_instructions: Array<Instruction>; | ||
instructions: Array<Instruction>; | ||
inputs: Array<SubstateRequirement>; | ||
min_epoch: Epoch | null; | ||
max_epoch: Epoch | null; | ||
is_seal_signer_authorized: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
8 changes: 8 additions & 0 deletions
8
bindings/dist/types/wallet-daemon-client/PublishTemplateRequest.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { ComponentAddressOrName } from "./ComponentAddressOrName"; | ||
export interface PublishTemplateRequest { | ||
binary: string; | ||
fee_account: ComponentAddressOrName | null; | ||
max_fee: number; | ||
detect_inputs: boolean; | ||
dry_run: boolean; | ||
} |
1 change: 1 addition & 0 deletions
1
bindings/dist/types/wallet-daemon-client/PublishTemplateRequest.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
5 changes: 5 additions & 0 deletions
5
bindings/dist/types/wallet-daemon-client/PublishTemplateResponse.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import type { Amount } from "../Amount"; | ||
export interface PublishTemplateResponse { | ||
transaction_id: string; | ||
dry_run_fee: Amount | null; | ||
} |
1 change: 1 addition & 0 deletions
1
bindings/dist/types/wallet-daemon-client/PublishTemplateResponse.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
7 changes: 7 additions & 0 deletions
7
bindings/dist/types/wallet-daemon-client/PublishTransactionRequest.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { ComponentAddressOrName } from "./ComponentAddressOrName"; | ||
export interface PublishTransactionRequest { | ||
binary: Array<number>; | ||
fee_account: ComponentAddressOrName; | ||
max_fee: number; | ||
detect_inputs: boolean; | ||
} |
1 change: 1 addition & 0 deletions
1
bindings/dist/types/wallet-daemon-client/PublishTransactionRequest.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
3 changes: 3 additions & 0 deletions
3
bindings/dist/types/wallet-daemon-client/PublishTransactionResponse.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface PublishTransactionResponse { | ||
transaction_id: string; | ||
} |
2 changes: 2 additions & 0 deletions
2
bindings/dist/types/wallet-daemon-client/PublishTransactionResponse.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
|
||
export interface TransactionSealSignature { | ||
public_key: string; | ||
signature: { public_nonce: string; signature: string }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Epoch } from "./Epoch"; | ||
import type { Instruction } from "./Instruction"; | ||
import type { SubstateRequirement } from "./SubstateRequirement"; | ||
import type { TransactionSignature } from "./TransactionSignature"; | ||
import type { TransactionSealSignature } from "./TransactionSealSignature"; | ||
import type { UnsealedTransactionV1 } from "./UnsealedTransactionV1"; | ||
import type { VersionedSubstateId } from "./VersionedSubstateId"; | ||
|
||
export interface TransactionV1 { | ||
id: string; | ||
fee_instructions: Array<Instruction>; | ||
instructions: Array<Instruction>; | ||
inputs: Array<SubstateRequirement>; | ||
min_epoch: Epoch | null; | ||
max_epoch: Epoch | null; | ||
signatures: Array<TransactionSignature>; | ||
body: UnsealedTransactionV1; | ||
seal_signature: TransactionSealSignature; | ||
filled_inputs: Array<VersionedSubstateId>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { TransactionSignature } from "./TransactionSignature"; | ||
import type { UnsignedTransactionV1 } from "./UnsignedTransactionV1"; | ||
|
||
export interface UnsealedTransactionV1 { | ||
transaction: UnsignedTransactionV1; | ||
signatures: Array<TransactionSignature>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Epoch } from "./Epoch"; | ||
import type { Instruction } from "./Instruction"; | ||
import type { SubstateRequirement } from "./SubstateRequirement"; | ||
import type { UnsignedTransactionV1 } from "./UnsignedTransactionV1"; | ||
|
||
export interface UnsignedTransaction { | ||
fee_instructions: Array<Instruction>; | ||
instructions: Array<Instruction>; | ||
inputs: Array<SubstateRequirement>; | ||
min_epoch: Epoch | null; | ||
max_epoch: Epoch | null; | ||
} | ||
export type UnsignedTransaction = { V1: UnsignedTransactionV1 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Epoch } from "./Epoch"; | ||
import type { Instruction } from "./Instruction"; | ||
import type { SubstateRequirement } from "./SubstateRequirement"; | ||
|
||
export interface UnsignedTransactionV1 { | ||
network: number; | ||
fee_instructions: Array<Instruction>; | ||
instructions: Array<Instruction>; | ||
inputs: Array<SubstateRequirement>; | ||
min_epoch: Epoch | null; | ||
max_epoch: Epoch | null; | ||
is_seal_signer_authorized: boolean; | ||
} |
10 changes: 10 additions & 0 deletions
10
bindings/src/types/wallet-daemon-client/PublishTemplateRequest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { ComponentAddressOrName } from "./ComponentAddressOrName"; | ||
|
||
export interface PublishTemplateRequest { | ||
binary: string; | ||
fee_account: ComponentAddressOrName | null; | ||
max_fee: number; | ||
detect_inputs: boolean; | ||
dry_run: boolean; | ||
} |
7 changes: 7 additions & 0 deletions
7
bindings/src/types/wallet-daemon-client/PublishTemplateResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "../Amount"; | ||
|
||
export interface PublishTemplateResponse { | ||
transaction_id: string; | ||
dry_run_fee: Amount | null; | ||
} |
9 changes: 9 additions & 0 deletions
9
bindings/src/types/wallet-daemon-client/PublishTransactionRequest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { ComponentAddressOrName } from "./ComponentAddressOrName"; | ||
|
||
export interface PublishTransactionRequest { | ||
binary: Array<number>; | ||
fee_account: ComponentAddressOrName; | ||
max_fee: number; | ||
detect_inputs: boolean; | ||
} |
5 changes: 5 additions & 0 deletions
5
bindings/src/types/wallet-daemon-client/PublishTransactionResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
|
||
export interface PublishTransactionResponse { | ||
transaction_id: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.