File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
test/HDWallet.Algorand.Tests Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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+ ```
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments