MCPcopy Create free account
hub / github.com/NextDotID/proof_server / BaseToInterface

Function BaseToInterface

validator/main.go:50–57  ·  view source on GitHub ↗

BaseToInterface converts a `validator.Base` struct to `validator.IValidator` interface.

(v *Base)

Source from the content-addressed store, hash-verified

48// BaseToInterface converts a `validator.Base` struct to
49// `validator.IValidator` interface.
50func BaseToInterface(v *Base) IValidator {
51 performer_factory, ok := PlatformFactories[v.Platform]
52 if !ok {
53 return nil
54 }
55
56 return performer_factory(v)
57}
58
59// H for JSON builder.
60type H map[string]any

Callers 2

proofPayloadFunction · 0.92
RevalidateMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected