package state import ( "ripple/types" ) func Init(secretKey [32]byte) error { st := &State{} st.Storage.User.SecretKey = secretKey st.Storage.Accounts = make(map[types.UserIdentifier]Account) st.Storage.Payments = make(map[[32]byte]Payment) return st.Save() }