2021-06-18 13:18:48 +03:00
|
|
|
package maddress
|
|
|
|
|
|
|
|
// Validator is an utility that verifies node
|
|
|
|
// multiaddress.
|
|
|
|
//
|
2022-04-21 14:28:05 +03:00
|
|
|
// For correct operation, the Validator must be created
|
2021-06-18 13:18:48 +03:00
|
|
|
// using the constructor (New). After successful creation,
|
|
|
|
// the Validator is immediately ready to work through API.
|
2021-06-18 13:35:31 +03:00
|
|
|
type Validator struct{}
|
2021-06-18 13:18:48 +03: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{}
|
|
|
|
}
|