Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Sources/TronKit/Signer/Signer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ extension Signer {
public static func instance(seed: Data) throws -> Signer {
Signer(privateKey: try privateKey(seed: seed))
}
//:改动
public static func instancePrivate(privateK: String) throws -> Signer {
Signer(privateKey: try privateKey(string: privateK))
}

public static func address(seed: Data) throws -> Address {
try address(privateKey: try privateKey(seed: seed))
Expand Down