Example #1
0
File: hsm.go Project: hhkbp2/go-hsm
func NewAnnotatedHSM(top, initial hsm.State) *AnnotatedHSM {
	return &AnnotatedHSM{
		StdHSM: hsm.NewStdHSM(HSMTypeAnnotated, top, initial),
	}
}
Example #2
0
File: hsm.go Project: hhkbp2/go-hsm
func NewCCommentHSM(top, initial hsm.State) *CCommentHSM {
	return &CCommentHSM{
		StdHSM:       hsm.NewStdHSM(HSMTypeCComment, top, initial),
		codeCharList: list.New(),
	}
}