shuijian-xu / bitcoin

0 stars 0 forks source link

How to use SIGHASH_ALL? #258

Open shuijian-xu opened 4 years ago

shuijian-xu commented 4 years ago

验证Point 是否有效的时候,不需要SIGHASH_ALL, 因此需要从数组中去掉,获得Der Signature

byte[] t1 = (byte[])stack.pop();
byte[] t2 =Arrays.copyOfRange(t1, 0, t1.length-1);