Browse Source

Improve references to serializing and parsing int64 in CScripts

remove_0mq
Jack Grigg 5 years ago
committed by George Tankersley
parent
commit
ca123682cc
  1. 6
      parser/internal/bytestring/bytestring.go

6
parser/internal/bytestring/bytestring.go

@ -203,7 +203,11 @@ func (s *String) ReadUint64(out *uint64) bool {
// ReadScriptInt64 reads and interprets a Bitcoin-custom compact integer
// encoding used for int64 numbers in scripts.
//
// See https://github.com/zcash/zcash/blob/4df60f4b334dd9aee5df3a481aee63f40b52654b/src/script/script.h#L363-L378
// Serializer in zcashd:
// https://github.com/zcash/zcash/blob/4df60f4b334dd9aee5df3a481aee63f40b52654b/src/script/script.h#L363-L378
//
// Partial parser in zcashd:
// https://github.com/zcash/zcash/blob/4df60f4b334dd9aee5df3a481aee63f40b52654b/src/script/interpreter.cpp#L308-L335
func (s *String) ReadScriptInt64(num *int64) bool {
// First byte is either an integer opcode, or the number of bytes in the
// number.

Loading…
Cancel
Save