2021-06-18 10:18:48 +00:00
|
|
|
package maddress
|
|
|
|
|
|
|
|
// Validator is an utility that verifies node
|
|
|
|
// multiaddress.
|
|
|
|
//
|
|
|
|
// For correct operation, Validator must be created
|
|
|
|
// using the constructor (New). After successful creation,
|
|
|
|
// the Validator is immediately ready to work through API.
|
2021-06-18 10:35:31 +00:00
|
|
|
type Validator struct{}
|
2021-06-18 10:18:48 +00:00
|
|
|
|
|
|
|
// New creates a new instance of the Validator.
|
|
|
|
//
|
|
|
|
// The created Validator does not require additional
|
|
|
|
// initialization and is completely ready for work.
|
|
|
|
func New() *Validator {
|
|
|
|
return &Validator{}
|
|
|
|
}
|