Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
refactor: make Message internal
Browse files Browse the repository at this point in the history
This struct isn't required to be made public at this stage.
  • Loading branch information
CassiusPacheco committed Nov 21, 2022
1 parent 4efd915 commit 146c5a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/ImmutableXCore/Crypto/Stark/Message.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import BigInt
import CryptoKit
import Foundation

public struct Message {
public let hashedData: Data
struct Message {
let hashedData: Data

public var asBigInt: BigInt {
var asBigInt: BigInt {
BigInt(data: hashedData)
}

public init(hashedData: Data) {
init(hashedData: Data) {
self.hashedData = hashedData
}

public init(hashedHex: String) {
init(hashedHex: String) {
self.init(hashedData: hashedHex.hexToData())
}
}

0 comments on commit 146c5a0

Please sign in to comment.