From fd42c858ed5a2d4f4acd1d5837da12a4e3e405b5 Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Thu, 4 Mar 2021 11:50:10 +0530 Subject: [PATCH] fix: prefix byte for script hash address --- chain/digibyte/digibyte.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/digibyte/digibyte.go b/chain/digibyte/digibyte.go index 1f86c0fc..70b246d5 100644 --- a/chain/digibyte/digibyte.go +++ b/chain/digibyte/digibyte.go @@ -132,7 +132,7 @@ var MainNetParams = chaincfg.Params{ // Address encoding magics PubKeyHashAddrID: 0x1e, // starts with 1 - ScriptHashAddrID: 0x32, // starts with 3 + ScriptHashAddrID: 0x3f, // starts with 3 PrivateKeyID: 0x80, // starts with 5 (uncompressed) or K (compressed) WitnessPubKeyHashAddrID: 0x06, // starts with p2 WitnessScriptHashAddrID: 0x0A, // starts with 7Xh