0

import binascii

operation=binascii.unhexlify(open("operation.hex","rb").readline()[:-1]) seed = binascii.unhexlify(open("bootstrap1.hex","rb").readline()[:-1])

from pyblake2 import blake2b h = blake2b(digest_size=32) h.update(b'\x03' + operation) digest = h.digest()

import ed25519 sk = ed25519.SigningKey(seed) sig = sk.sign(digest) print(sig.hex())

The following code is in python. Does anyone know the code in Java?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.