Skip to content

Instantly share code, notes, and snippets.

@zmanian
Last active April 12, 2018 05:54
Show Gist options
  • Save zmanian/4192ecf78bfc2dc8fd639fbe746ff097 to your computer and use it in GitHub Desktop.
Save zmanian/4192ecf78bfc2dc8fd639fbe746ff097 to your computer and use it in GitHub Desktop.

Generating an address for an ed25519 public key

    const TypeDistinguisher = HexToBytes("1624de6220")


    //prepend the TypeDistinguisher as Bytes
    SerializedBytes = TypeDistinguisher ++ PubKey.asBytes()

    Address = ripemd160(SerializedBytes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment