File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 44using System . Linq ;
55using System . Text ;
66using NBitcoin . DataEncoders ;
7+ using System . IO ;
78#if ! HAS_SPAN
89using NBitcoin . BouncyCastle . Math ;
910#endif
@@ -407,6 +408,18 @@ public BitcoinSecret GetWif(Network network)
407408 return new BitcoinSecret ( this , network ) ;
408409 }
409410
411+ public byte [ ] GetSeedBytes ( )
412+ {
413+ AssertNotDiposed ( ) ;
414+ byte [ ] bytes = Enumerable . Repeat ( ( byte ) 0x00 , KEY_SIZE ) . ToArray ( ) ;
415+ using ( var bytesStream = new MemoryStream ( bytes ) )
416+ {
417+ var stream = new BitcoinStream ( bytesStream , true ) ;
418+ ReadWrite ( stream ) ;
419+ }
420+ return bytes ;
421+ }
422+
410423 public BitcoinEncryptedSecretNoEC GetEncryptedBitcoinSecret ( string password , Network network )
411424 {
412425 AssertNotDiposed ( ) ;
You can’t perform that action at this time.
0 commit comments