Skip to content

iquidus/go-persona

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-persona

Returns a base persona (name, sex & zodiac) for a given ethereum style address. As an homage to Satoshi Nakamoto, all names (both given and family) are of a japanese origin. These are not meant to replace ENS names, but as security/convenience to allow the user to more easily check if an address he wants to interact with is the correct one.

Suggested usage is as a fallback when an account does not have an ENS.

Sample persona

Use

  p := persona.New(address)

Returns a struct of type Persona defined as

type Persona struct {
  Name string `bson:"name" json:"name"`
  Sex string `bson:"sex" json:"sex"`
  Zodiac string `bson:"zodiac" json:"zodiac"`
}

E.g.

  p := persona.New("0x4D4dCA590b0929cEe04Bbea60420aFd21A723799")

Returns

  Persona{
    Name: "Ryoichi Takasaki",
    Sex: "male",
    Zodiac: "scorpio"
  }

License

WTFPL

About

Go implementation of Persona

Resources

Stars

Watchers

Forks

Languages