取 d =16fdbb3f3e4d7d253c421ae5a09f1ce500d973c04ae91564
R(x,y) = d * G(x,y)=
Rx=2B443533CFBECB00ABE1F9D0F3A8FFD871EFDDAB4FF93B0C
Ry=6EFF3D69042B58F7C726BDB6B495AE75BD09D762259013DB
签名 "123",即求sha1('123'),得到:
h = 40bd001563085fc35165329ea1ff5c5ecbdbbeef
取 k =CADDC27FEFC3040C1CCA194542218E002F58D504A639B668
Verify (用ECCTool 和 BigIntCal计算):
u = h/s mod n = BBBBED787373E2407BA720D7851CE0895222B5B5DF81BECB
w = r/s mod n = 2BBC84EA2E318FC5666B50CEE41845F3EB1DF40C838FA86C
V(x,y) = u *G + w *R mod n =
V.x = 5C09A23549325C866F0C1D8D6AB81255977C90A9FD6D66C4
V.y = 70360EEEC1C42D5AC10226B8BE0EA507E3FF54290737B02C
(1) 签名
k * G mod n 的横坐标 r=5C09A23549325C866F0C1D8D6AB81255977C90A9FD6D66C4
s= (h + rd)* k^-1 mod n
h+rd=8440CC7A935B37A946574E1F0049F38B08062C127AA7F1E298C7EA7077ACDA445A513B5B8D54F1227DA37D6F469F77F
h+rd mod n=4A36F71E1BE5CCC086A5483BAFF2F81F1B8729087731A60D
k^-1 mod n= 3A5DF42EDE377F21CA637377C20FE43EDAFF70F0332641E1
s= (4A36F71E1BE5CCC086A5483BAFF2F81F1B8729087731A60D * 3A5DF42EDE377F21CA637377C20FE43EDAFF70F0332641E1) mod n
=10EBB0BE92170DD54EE7EBB5C4E4C549C785BC29C1303EC0EEC0E31E0EDE9703DC1604680CEBF5A83A5B28579ABA3E6D mod n
=C0DFFC8E4BA4A91EBFFBCE7FE07E202AAF567DC10D69D5E8
(2) 验证 V=k * G mod n
u = h/s mod n = BBBBED787373E2407BA720D7851CE0895222B5B5DF81BECB
w = r/s mod n = 2BBC84EA2E318FC5666B50CEE41845F3EB1DF40C838FA86C
V(x,y) = u *G + w *R mod n =
V.x = 5C09A23549325C866F0C1D8D6AB81255977C90A9FD6D66C4
V.y = 70360EEEC1C42D5AC10226B8BE0EA507E3FF54290737B02C