code: function PublicKey (validator, serializer, factory) {
    const size = PUBLIC_KEY_LENGTH
    const name = 'PublicKey'
  
    validator = validator.bind(null, name, size)
    serializer = serializer(validator)
  
    return factory(serializer, size, name)
  }
docs: PublicKey type factory
  
  @param {function(name, size, value)} validator hexadecimal validator
  @param {function(validator, value, buffer, from)} encoder function accepting validator, value, buffer, position and returns modified buffer
  @param {function(serizalizer, size, name)} factory type builder factory
  @returns {Object} hex type
  @private