EDGE Toolkit Technical Guideline

Belarusian Schnorr-based Digital Signature Algorithm

BignV1 Key Pair Generation

edgetk -pkey keygen -algorithm bign -bits 384 -prv "Private.pem" -pass nil -pub "Public.pem"
BignV1 key pair generated successfully:
Private key saved to: albanese.atwebpages.com/directrix/Private.pem
Public key saved to: albanese.atwebpages.com/directrix/Public.pem
Fingerprint: +tLO6roq8PVnl9oAYSfQjqe0xJN+M1ST/TzimCgcu4Y=
BIGN (384-bit)
+-----------------+
|=BX^^#^^^^%^^^^^^|
|.=+EB#o^%X^^@^^^^|
|. ..o X *@X*^*^^^|
|   . o  .Oo*o%OX@|
|      . S *.  .=B|
|       . *    +.+|
|             + O+|
|            . =o*|
|             ooo |
+-----------------+

Private Key Details

edgetk -pkey text -key "Private.pem"
Private key details:
-----BEGIN BIGN PRIVATE KEY-----
MIG+AgEAMBgGCipwAAIAImUtAgEGCipwAAIAImUtAwIEgZ4wgZsCAQEEMMNCBS/R
RZe47L9CbkJ87yCCoe88NsyCKT9ir5sgSjBGK7vS+9dAE04F29Mv+n2S56FkA2IA
BDVa5c5jb/oRSQrfTiBGKzrCUVCM1Q5hPxa6Pf1c8S4S9kNq/AED/VckSxJAn6tr
BFBPvJUlJZ2wrxm9Y0/Tp6E1zGzMD+HmzwejF448YzWR/qiTGzrLOPFPr+4LU0Fg
Vg==
-----END BIGN PRIVATE KEY-----
Private-Key: (384-bit)
priv:
    c3:42:05:2f:d1:45:97:b8:ec:bf:42:6e:42:7c:ef:
    20:82:a1:ef:3c:36:cc:82:29:3f:62:af:9b:20:4a:
    30:46:2b:bb:d2:fb:d7:40:13:4e:05:db:d3:2f:fa:
    7d:92:e7
pub:
    04:35:5a:e5:ce:63:6f:fa:11:49:0a:df:4e:20:46:
    2b:3a:c2:51:50:8c:d5:0e:61:3f:16:ba:3d:fd:5c:
    f1:2e:12:f6:43:6a:fc:01:03:fd:57:24:4b:12:40:
    9f:ab:6b:04:50:4f:bc:95:25:25:9d:b0:af:19:bd:
    63:4f:d3:a7:a1:35:cc:6c:cc:0f:e1:e6:cf:07:a3:
    17:8e:3c:63:35:91:fe:a8:93:1b:3a:cb:38:f1:4f:
    af:ee:0b:53:41:60:56
Curve: bign384v1

KeyID: a2f59ae2993e29499bcf8f7a0e1ad2726bdbe49d

Public Key Details

edgetk -pkey text -key "Public.pem"
Public key details:
-----BEGIN PUBLIC KEY-----
MH4wGAYKKnAAAgAiZS0CAQYKKnAAAgAiZS0DAgNiAAQ1WuXOY2/6EUkK304gRis6
wlFQjNUOYT8Wuj39XPEuEvZDavwBA/1XJEsSQJ+rawRQT7yVJSWdsK8ZvWNP06eh
NcxszA/h5s8HoxeOPGM1kf6okxs6yzjxT6/uC1NBYFY=
-----END PUBLIC KEY-----
Public-Key: (384-bit)
pub.X:
    35:5a:e5:ce:63:6f:fa:11:49:0a:df:4e:20:46:2b:
    3a:c2:51:50:8c:d5:0e:61:3f:16:ba:3d:fd:5c:f1:
    2e:12:f6:43:6a:fc:01:03:fd:57:24:4b:12:40:9f:
    ab:6b:04
pub.Y:
    50:4f:bc:95:25:25:9d:b0:af:19:bd:63:4f:d3:a7:
    a1:35:cc:6c:cc:0f:e1:e6:cf:07:a3:17:8e:3c:63:
    35:91:fe:a8:93:1b:3a:cb:38:f1:4f:af:ee:0b:53:
    41:60:56
pub:
    04:35:5a:e5:ce:63:6f:fa:11:49:0a:df:4e:20:46:
    2b:3a:c2:51:50:8c:d5:0e:61:3f:16:ba:3d:fd:5c:
    f1:2e:12:f6:43:6a:fc:01:03:fd:57:24:4b:12:40:
    9f:ab:6b:04:50:4f:bc:95:25:25:9d:b0:af:19:bd:
    63:4f:d3:a7:a1:35:cc:6c:cc:0f:e1:e6:cf:07:a3:
    17:8e:3c:63:35:91:fe:a8:93:1b:3a:cb:38:f1:4f:
    af:ee:0b:53:41:60:56
Curve: bign384v1

Digital Signature Generation

edgetk -pkey sign -algorithm dbign -md belt -id "1.2.112.0.2.0.34.101.31.81" -info "AAD" -key "Private.pem" "test.txt" > sign.txt
Digital signature generated successfully:
304d02181dbc6f6f948f378ef1d2e70ef483d3b30717572046d69a45023100f9688eadf40057527462ffbe5efd31347bd92f71ba2240cdbaaa9a7e551655ed31d44d09e99370296cda2ee759db8e6e

Digital Signature Verification

edgetk -pkey verify -algorithm bign -md belt -id "1.2.112.0.2.0.34.101.31.81" -key "Public.pem" -signature "304d02181dbc6f6f948f378ef1d2e70ef483d3b30717572046d69a45023100f9688eadf40057527462ffbe5efd31347bd92f71ba2240cdbaaa9a7e551655ed31d44d09e99370296cda2ee759db8e6e" "test.txt"
Signature verified successfully:
Verified: true