Beispiel #1
0
def derive_public_key(derivation: Ge25519, output_index: int,
                      B: Ge25519) -> Ge25519:
    """
    H_s(derivation || varint(output_index))G + B
    """
    check_ed25519point(B)
    return tcry.xmr_derive_public_key(derivation, output_index, B)
Beispiel #2
0
def derive_public_key(derivation: tcry.Point, output_index: int,
                      B: tcry.Point) -> tcry.Point:
    """
    H_s(derivation || varint(output_index))G + B
    """
    tcry.ge25519_check(B)
    return tcry.xmr_derive_public_key(None, derivation, output_index, B)
Beispiel #3
0
def derive_public_key(derivation, output_index, B):
    """
    H_s(derivation || varint(output_index))G + B
    """
    ge_frombytes_vartime_check(B)  # check some conditions on the point
    check_ed25519point(B)

    return tcry.xmr_derive_public_key(derivation, output_index, B)