Skip to content

Commit 017c90b

Browse files
Bump version
1 parent d4f351d commit 017c90b

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

src/HDWallet.Algorand/HDWallet.Algorand.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<Title></Title>
1212
<Description></Description>
13-
<Version>0.1.3</Version>
13+
<Version>0.2.0</Version>
1414

1515
<RepositoryType>git</RepositoryType>
1616
<RepositoryUrl>https://github.com/farukterzioglu/HDWallet</RepositoryUrl>

src/HDWallet.Algorand/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
### Notes
2+
3+
Create Algorand wallet from extended private key (xprv)
4+
```csharp
5+
string xprv = "xprv9s21ZrQH143K3xUTDYV4BjfSvuVscczTMw7LtNWgjYBLLGHPqagsJm9YyQihApsr8UFEP9ydzVzTdVezhaDVFDciCGMLhV5Yp8s2fRT7qh9";
6+
7+
IAccount<AlgorandWallet> account = new Account<AlgorandWallet>(xprv);
8+
var wallet = account.GetExternalWallet(1);
9+
Assert.AreEqual(expected: "5RKLKOVRU4WRWEKKI5I5Z6HTRNYA3XD6HGU34ZDRCDLJJ3DYQEOAOEWODY", wallet.Address);
10+
```

test/HDWallet.Algorand.Tests/GenerateAlgorandWallet.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public void ShouldGeneratedFromXprv()
5959

6060
Assert.AreEqual(wallet.PublicKeyBytes, actualWallet.PublicKeyBytes);
6161
Assert.AreEqual(expected: "5RKLKOVRU4WRWEKKI5I5Z6HTRNYA3XD6HGU34ZDRCDLJJ3DYQEOAOEWODY", actualWallet.Address);
62+
63+
account0FromXprv = new Account<AlgorandWallet>(xprv);
64+
actualWallet = account0FromXprv.GetExternalWallet(1);
65+
Assert.AreEqual(expected: "5RKLKOVRU4WRWEKKI5I5Z6HTRNYA3XD6HGU34ZDRCDLJJ3DYQEOAOEWODY", actualWallet.Address);
6266
}
6367
}
6468
}

0 commit comments

Comments
 (0)