From dc1d278edc68ea1b89a585336803466fe01fa779 Mon Sep 17 00:00:00 2001 From: DavidYu <654070281@qq.com> Date: Fri, 22 Apr 2022 13:59:36 +0800 Subject: [PATCH] public fix --- Sources/did-motif-ios/DIDMotifUtils.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/did-motif-ios/DIDMotifUtils.swift b/Sources/did-motif-ios/DIDMotifUtils.swift index ee150b7..f8546dd 100644 --- a/Sources/did-motif-ios/DIDMotifUtils.swift +++ b/Sources/did-motif-ios/DIDMotifUtils.swift @@ -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) }) ?? [] @@ -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()