예제 #1
0
파일: tx.go 프로젝트: ThePiachu/GoBit
func (to *TxOut) SetScript(script []byte) {
	to.PkScript = script
	to.PkScriptLength = mymath.VarInt(len(to.PkScript))
}
예제 #2
0
파일: tx.go 프로젝트: ThePiachu/GoBit
func (to *TxOut) SetScriptStr(script string, opcode byte) {
	to.PkScript = mymath.AddByte(mymath.String2Hex(script), opcode)
	to.PkScriptLength = mymath.VarInt(len(to.PkScript))
}
예제 #3
0
파일: tx.go 프로젝트: ThePiachu/GoBit
func (ti *TxIn) SetSignature(sig []byte) {
	ti.SignatureScript = sig
	ti.ScriptLength = mymath.VarInt(len(ti.SignatureScript))
}