Skip to content

Commit

Permalink
Merge pull request #3 from keefertaylor/comments
Browse files Browse the repository at this point in the history
Update comment
  • Loading branch information
keefertaylor authored Feb 25, 2019
2 parents 172bb85 + 043bfcb commit c527360
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Base58Swift/Base58.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import BigInt
import CommonCrypto
import Foundation

/// A static utility class which provides Base58 and Base58Check encoding and decoding functions.
/// A static utility class which provides Base58 encoding and decoding functionality.
public class Base58 {
/// Length of checksum appended to Base58Check encoded strings.
private static let checksumLength = 4
Expand All @@ -31,7 +31,6 @@ public class Base58 {
}

let decodedChecksum = decodedChecksummedBytes.suffix(checksumLength)

let decodedBytes = decodedChecksummedBytes.prefix(upTo: decodedChecksummedBytes.count - checksumLength)
let calculatedChecksum = calculateChecksum([UInt8](decodedBytes))

Expand Down

0 comments on commit c527360

Please sign in to comment.