Skip to content

Commit

Permalink
public fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatFish committed Apr 22, 2022
1 parent 0819160 commit dc1d278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/did-motif-ios/DIDMotifUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public extension DIDMotifUtils {
/// 获取DID Motif的绘制坐标
/// - Parameter did: did
/// - Returns: (colorIndex, [cordinateIndex])
static func getMotifIndexs(did: String) -> (Int, [Int]) {
public static func getMotifIndexs(did: String) -> (Int, [Int]) {
// base58 格式的 DID 解码为 binary DID string
// 即 https://github.com/ArcBlock/ABT-DID-Protocol#create-did (step9 -> step8)
let decoded = Data(multibaseEncoded: did.removeDIDPrefix())?.bytes.compactMap({ Int($0) }) ?? []
Expand All @@ -45,7 +45,7 @@ public extension DIDMotifUtils {
return (colorIndex, positionIndexes)
}

static func getMotifInfo(did: String) -> (Int, [Int], DIDMotifShage) {
public static func getMotifInfo(did: String) -> (Int, [Int], DIDMotifShage) {
let (colorIndex, positionIndexs) = getMotifIndexs(did: did)
let roleType = did.roleType()

Expand Down

0 comments on commit dc1d278

Please sign in to comment.