Skip to content

Commit

Permalink
Merge pull request #28 from bitmark-inc/security_audit
Browse files Browse the repository at this point in the history
Security audit
  • Loading branch information
hvthhien authored Mar 14, 2024
2 parents d0017ea + 9e4213f commit 8cb5f00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LibAuk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Pod::Spec.new do |s|
s.version = '0.1.1'
s.summary = 'Autonomy KMS written in Swift.'
s.homepage = 'https://bitmark.com'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.license = { :type => 'BSD-2-Clause', :file => 'LICENSE' }
s.author = { 'Bitmark Inc' => '[email protected]' }
s.source = { :git => 'https://github.com/bitmark-inc/libauk-swift.git', :tag => s.version.to_s }
s.ios.deployment_target = '14.0'
Expand Down
2 changes: 1 addition & 1 deletion Sources/LibAuk/Utils/Keys.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Keys {
}

static func accountDIDPrivateKey(mnemonic: BIP39Mnemonic, passphrase: String = "") throws -> Secp256k1.Signing.PrivateKey {
let masterKey = try HDKey(seed: mnemonic.seedHex(passphrase: ""))
let masterKey = try HDKey(seed: mnemonic.seedHex(passphrase: passphrase))
let derivationPath = try BIP32Path(string: Constant.accountDerivationPath)
let account = try masterKey.derive(using: derivationPath)

Expand Down

0 comments on commit 8cb5f00

Please sign in to comment.