Skip to content

Commit fb5b0af

Browse files
small updates
1 parent 8e1f630 commit fb5b0af

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

create-leo-app/template-offline-public-transaction-ts/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ the internet for it. This provides a way to build Aleo execution transactions wi
2121
This pathway is suitable for use-cases such as hardware wallets or air-gapped machines used
2222
for building secure transactions.
2323

24-
### 1.4 Assumptions
24+
### 1.4 Transaction Types
2525

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`
2831

2932
## 2. Usage
3033

create-leo-app/template-offline-public-transaction-ts/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ async function buildTransferPublicTxOffline(recipientAddress: Address, amount: n
1515
// Create the proving keys from the key bytes on the offline machine
1616
console.log("Creating proving keys from local key files");
1717
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]);
1918
const feePublicProvingKey = ProvingKey.fromBytes(feePublicKeyBytes);
2019
const transferPublicProvingKey = ProvingKey.fromBytes(
2120
await getLocalKey(<string>keyPaths[CREDITS_PROGRAM_KEYS.transfer_public.locator])
@@ -180,7 +179,7 @@ console.log(`\n-----------------bond_public transaction-----------------\n${bond
180179
console.log(`---------------------------------------------------------`);
181180
console.log(`\n----------------unbond_public transaction:---------------\n${bondTransactions[1]}`);
182181
console.log(`---------------------------------------------------------`);
183-
console.log(`\n-----------------claim_unbond transaction:---------------\n${bondTransactions[2]}`);
182+
console.log(`\n-----------------claim_unbond_public transaction:---------------\n${bondTransactions[2]}`);
184183
console.log(`---------------------------------------------------------`);
185184
//---------------------------------------------------------
186185

0 commit comments

Comments
 (0)