2021-06-18 10:18:48 +00:00
|
|
|
package maddress
|
|
|
|
|
|
|
|
// Validator is an utility that verifies node
|
|
|
|
// multiaddress.
|
|
|
|
//
|
2022-04-21 11:28:05 +00:00
|
|
|
// For correct operation, the Validator must be created
|
2021-06-18 10:18:48 +00:00
|
|
|
// 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{}
|
|
|
|
}
|