File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
create-leo-app/template-offline-public-transaction-ts Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,13 @@ the internet for it. This provides a way to build Aleo execution transactions wi
21
21
This pathway is suitable for use-cases such as hardware wallets or air-gapped machines used
22
22
for building secure transactions.
23
23
24
- ### 1.4 Assumptions
24
+ ### 1.4 Transaction Types
25
25
26
- The key material in this example is assumed to be pre-downloaded onto the machine performing the
27
- construction of the offline transaction.
26
+ Several types of transactions can be built and executed using this template:
27
+
28
+ ` bond_public `
29
+ ` unbond_public `
30
+ ` claim_unbond_public `
28
31
29
32
## 2. Usage
30
33
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ async function buildTransferPublicTxOffline(recipientAddress: Address, amount: n
15
15
// Create the proving keys from the key bytes on the offline machine
16
16
console . log ( "Creating proving keys from local key files" ) ;
17
17
const feePublicKeyBytes = await getLocalKey ( < string > keyPaths [ CREDITS_PROGRAM_KEYS . fee_public . locator ] ) ;
18
- const transferPublicAsSignerKeyBytes = await getLocalKey ( < string > keyPaths [ CREDITS_PROGRAM_KEYS . transfer_public_as_signer . locator ] ) ;
19
18
const feePublicProvingKey = ProvingKey . fromBytes ( feePublicKeyBytes ) ;
20
19
const transferPublicProvingKey = ProvingKey . fromBytes (
21
20
await getLocalKey ( < string > keyPaths [ CREDITS_PROGRAM_KEYS . transfer_public . locator ] )
@@ -180,7 +179,7 @@ console.log(`\n-----------------bond_public transaction-----------------\n${bond
180
179
console . log ( `---------------------------------------------------------` ) ;
181
180
console . log ( `\n----------------unbond_public transaction:---------------\n${ bondTransactions [ 1 ] } ` ) ;
182
181
console . log ( `---------------------------------------------------------` ) ;
183
- console . log ( `\n-----------------claim_unbond transaction:---------------\n${ bondTransactions [ 2 ] } ` ) ;
182
+ console . log ( `\n-----------------claim_unbond_public transaction:---------------\n${ bondTransactions [ 2 ] } ` ) ;
184
183
console . log ( `---------------------------------------------------------` ) ;
185
184
//---------------------------------------------------------
186
185
You can’t perform that action at this time.
0 commit comments