Skip to content

privateKeyMalformed #7

@loekTheDreamer

Description

@loekTheDreamer

cant create a keystore from private key: error is private key malformed

code used:

    let privateKey = "583e8853014aa2c53e031f213a4075efb59cb4d0541674d87bdf49d170f46eb4"
    let privateKeyByteArray: [UInt8] = Array(privateKey.utf8)
    let keystore = try! Keystore(privateKey: privateKeyByteArray, password: password)
    // Fatal error: 'try!' expression unexpectedly raised an error: Keystore.KeystoreFactory.Error.privateKeyMalformed

please assist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions