public void ReadWrite(BitcoinStream stream) { using (stream.BigEndianScope()) { stream.ReadWrite(ref nDepth); stream.ReadWrite(ref vchFingerprint); stream.ReadWrite(ref nChild); stream.ReadWrite(ref vchChainCode); stream.ReadWrite(ref pubkey); } }
public void ReadWrite(BitcoinStream stream) { using (stream.BigEndianScope()) { stream.ReadWrite(ref this.nDepth); stream.ReadWrite(ref this.vchFingerprint); stream.ReadWrite(ref this.nChild); stream.ReadWrite(ref this.vchChainCode); byte b = 0; stream.ReadWrite(ref b); stream.ReadWrite(ref this.key); } }
public void ReadWrite(BitcoinStream stream) { using (stream.BigEndianScope()) { stream.ReadWrite(ref nDepth); stream.ReadWrite(ref parentFingerprint); stream.ReadWrite(ref nChild); stream.ReadWrite(ref vchChainCode); if (pubkey is null) { var pubkeyBytes = new byte[33]; stream.ReadWrite(ref pubkeyBytes); if (!stream.Serializing) { pubkey = new PubKey(pubkeyBytes); } } else { stream.ReadWrite(ref pubkey); } } }