XYOracleNetwork/sdk-xyo-client-swift

View on GitHub
Sources/XyoClient/XyoWitness/Witness.swift

Summary

Maintainability
A
0 mins
Test Coverage
import Foundation

open class XyoWitness {
    public let address: XyoAddress?
    public var previousHash: String?
    
    public init(_ address: XyoAddress? = nil, previousHash: String? = nil) {
        self.address = address ?? XyoAddress()
        self.previousHash = previousHash
    }
    
    open func observe() -> XyoPayload? {
        preconditionFailure("This method must be overridden")
    }
}