EosioEccSign

public class EosioEccSign

EosioEccSign manages ECC signing.

  • Sign data with a K1 key for validation on an eosio chain.

    Throws

    If the data cannot be signed or the public key cannot be recovered, or another error is encountered.

    Declaration

    Swift

    public class func signWithK1(publicKey: Data, privateKey: Data, data: Data) throws -> Data

    Parameters

    publicKey

    The public key to recover.

    privateKey

    The private key used to sign.

    data

    The data to sign.

    Return Value

    A signature (header byte + r + s).