public static Message ReadNext(Stream stream, Network network, ProtocolVersion version, CancellationToken cancellationToken, out PerformanceCounter counter) { return(ReadNext(stream, network, version, cancellationToken, null, out counter)); }
public static Message ReadNext(Socket socket, Network network, ProtocolVersion version, CancellationToken cancellationToken) { PerformanceCounter counter; return(ReadNext(socket, network, version, cancellationToken, out counter)); }
public static Message ReadNext(Socket socket, Network network, ProtocolVersion version, CancellationToken cancellationToken, byte[] buffer, out PerformanceCounter counter) { var stream = new NetworkStream(socket, false); return(ReadNext(stream, network, version, cancellationToken, buffer, out counter)); }
public void UpdateSignature(Key key, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION) { UpdatePayload(); signature = new VarString(key.Sign(Hashes.Hash256(payload.GetString())).ToDER()); }