def crypto_sign_seed_keypair(seed):
    if len(seed) != crypto_sign_SEEDBYTES:
        raise ValueError("Invalid seed")

    pk = lib.ffi.new("unsigned char[]", crypto_sign_PUBLICKEYBYTES)
    sk = lib.ffi.new("unsigned char[]", crypto_sign_SECRETKEYBYTES)

    if lib.crypto_sign_seed_keypair(pk, sk, seed) != 0:
        raise CryptoError("An error occurred while generating keypairs")

    return (
        lib.ffi.buffer(pk, crypto_sign_PUBLICKEYBYTES)[:],
        lib.ffi.buffer(sk, crypto_sign_SECRETKEYBYTES)[:],
    )
Computes and returns the public key and secret key using the seed ``seed``.
dataset/ETHPy150Open OpenBazaar/OpenBazaar-Installer/windows/PyNaCl-0.3.0-py2.7-win-amd64.egg/nacl/bindings/crypto_sign.py/crypto_sign_seed_keypair